(2015-08-24, 06:27:51)Artur Wrote: Where can I edit the scheme of news Manager? I mean, where can I edit structure of my posts etc?
You can use custom settings (in NM settings) to:
- reorder the post fields you need (see here, showFields)
- customize posts' markup and classes (see here: Custom CSS class selectors and Custom HTML markup)
If you wish, post an example of the structure you need and we'll see if it can be done.
http://blog.king-archee.ga/ Here is the website, I would like to have Author in the same line as Publish Date, i mean something like: Published on XX.XX.XXX by AUTHOR and tags on right side.
Glowczynski.pl- webmaster, graphic designer, translator.
For any job offers contact me via artur@glowczynski.pl.
(2015-08-25, 00:29:24)Artur Wrote: http://blog.king-archee.ga/ Here is the website, I would like to have Author in the same line as Publish Date, i mean something like: Published on XX.XX.XXX by AUTHOR and tags on right side.
In News Manager settings, enable Custom settings and enter this in the input box below:
Code:
showFields title,date,author,tags,image,content
AUTHOR " by "
markupPostDate span
markupPostAuthor span
markupPostTags div
The first line is for reordering the post fields. It's only necessary if you want to display tags before post content (I'm not sure if it's what you need).
The second one changes the default "Author: " string.
You'll have to add some style to your CSS to display tags on the right side, something like this: .nm_post_meta { float:right; }
(Note: it could also be done without redefining the markup... tags, by using CSS instead to style .nm_post_date, .nm_post_author, ...)
@Carlos:
Thanks for your wonderful plugin, it provides us a blog/news publishing ability from GetSimple CMS.
One question is: I would like to create new custom page (can be an external PHP file or New page feature in AdminCP), for example:
- page1: will display all news/posts having tag "page1"
- pagex: will display all news/posts having tag "pagex"
2015-09-09, 00:36:43 (This post was last modified: 2015-09-09, 00:37:33 by thangnaodo.)
(2015-09-08, 22:55:38)thangnaodo Wrote: @Carlos:
Thanks for your wonderful plugin, it provides us a blog/news publishing ability from GetSimple CMS.
One question is: I would like to create new custom page (can be an external PHP file or New page feature in AdminCP), for example:
- page1: will display all news/posts having tag "page1"
- pagex: will display all news/posts having tag "pagex"
How to invoke the source code to do so?
Regards,
Tim
Update: I did some tricky lines as below, works like a charm now
Hello!
I customized my CKEditor-Toolbar, which works almost perfect. But when I want to edit a post in the newsmanager my toolbar completetly dissapears! Do you know what I've done wrong or where the problem lies?
(2015-09-10, 23:45:02)Carlos Wrote: What's your GSEDITORTOOL definition like?
I think the relevant entries are these (but I could send you the whole file if it makes it easier! ):
Code:
# WYSIWYG toolbars (advanced, basic or [custom config])
define('GSEDITORTOOL_', 'basic');
#Oben festgelegt, dass alle User 'basic' bekommmen, (festgelegt in config.js)
#Hier werden dann User definiert, für die eine Ausnahme gemacht wird, die also einen anderen Editor bekommen.
define('GSEDITORTOOL_user1', 'advanced');
define('GSEDITORTOOL_test2', 'Full');
define('GSEDITORTOOL_user3', 'Optimal');
# WYSIWYG editor language (default en)
define('GSEDITORLANG', 'de');
(2015-09-11, 02:13:58)Carlos Wrote: News Manager currently supports "basic", "advanced" and custom toolbars.
I'll look into supporting "Full" and others.
Custom toolbar would be totally sufficient for me. But the don't work here as well. Only basic and andvanced.
Is there anything I have to keep in mind when creating a custom toolbar? I copied "Full", renamed it "Optimal" and deleted about 10-15 unnecessary tools.
Could i do something on the excerpts page where i show any number of posts based on tag? I know there is this function
nm_is_tag() So for example, I have three tags with 2 posts per tag. On the page where the excerpts are being shown I would like to have buttons it filter out or display the post under that tag.
Here is an image to illustrate: This page would be the excerpt page. I realize this is out of the scope but wondering if I could use those nm_is_tag('sales'), nm_is_tag('marketing'), nm_is_tag('public-relations') or something to filter what is displayed with some jquery
2015-09-29, 05:23:24 (This post was last modified: 2015-09-29, 06:46:33 by lnickel.)
Yikes that didnt work as i expected. Ok so maybe for another alternative. Can grab the posts for each tag? Lets say i only want to show posts from one tag. How could i accomplish that? I'm bascially trying to pull the posts from on tag and put it on one page.
Edit: I think i've found what I was looking for. It only shows the post per the tag. However, it doesn't seem to go to the full article when the post_link is clicked. Hmmm....I probably missed something. The links look correct, the url changes but the full text does not come in....more digging
This will basically show only the posts that have the tag of 'sales' on the main news page. If you click to the full article the custom display goes away which is great BUT how can i bring back in the meta under the excerpt? I would like to keep the tags....
2015-10-04, 17:49:55 (This post was last modified: 2015-10-04, 17:56:39 by D.O..)
Hey Carlos!
After all this time, I can't believe how important is this internal NM function
I still remember how happy was when I found that yeas ago!
Just a tip:
list 'nm_show_tag' together 'nm_list_recent', 'nm_list_archives', 'nm_list_tags', 'nm_search' and more...
I suppose Roog was created it for this reason!
By the way, I would like to ask you
if there is a way to show the the future events in "nm_list_recent_by_tag".
Example: I posted a couple of news dated 2016 and they are not showed.
To display future/scheduled posts you can use NM Addons' function nm_custom_display_future (same parameters as nm_custom_display_recent)
I've not included nm_show_tag in the docs because I intend to add a similar function with a different name (and maybe some other parameters - I've just not decided about this). Anyway, thanks for the suggestion.