Several users have asked for enhancements in News Manager sidebar functions to add dates, excerpts, etc. to the recent posts list.
The News Manager Addons plugin provides additional functions/template tags to extend News Manager, so that you can customize it a bit (currently, only the sidebar latest posts)
Download (Extend)
Example - Recent posts with excerpts (different length to those in settings)
In your sidebar component, replace nm_list_recent() by:
Some of the available sidebar functions/template tags are:
nm_custom_list_recent($template)
nm_custom_display_recent($template)
nm_set_custom_date($dateformat)
nm_set_custom_excerpt($excerptlength)
nm_set_custom_maxposts($maxposts)
nm_list_recent_with_date($dateformat, $before=false)
nm_list_recent_by_tag($tag, $numposts=0)
$template is a string (HTML code) where these tokens can be used:
{{ post_link }} - absolute URL of post
{{ post_title }} - post title
{{ post_date }} - post date/time
{{ post_excerpt }} - post excerpt
{{ post_slug }} - post id
{{ post_number }} - number of post as displayed (0, 1, 2, ...)
[...]
More info here:
http://www.cyberiada.org/cnb/news-manage...ns-plugin/
(Sorry for the poor docs, I'll update them...)
The News Manager Addons plugin provides additional functions/template tags to extend News Manager, so that you can customize it a bit (currently, only the sidebar latest posts)
Download (Extend)
Example - Recent posts with excerpts (different length to those in settings)
In your sidebar component, replace nm_list_recent() by:
PHP Code:
nm_set_custom_excerpt(123);
nm_custom_list_recent('
<a href="{{ post_link }}">{{ post_title }}</a><br />
{{ post_excerpt }}
');
Some of the available sidebar functions/template tags are:
nm_custom_list_recent($template)
nm_custom_display_recent($template)
nm_set_custom_date($dateformat)
nm_set_custom_excerpt($excerptlength)
nm_set_custom_maxposts($maxposts)
nm_list_recent_with_date($dateformat, $before=false)
nm_list_recent_by_tag($tag, $numposts=0)
$template is a string (HTML code) where these tokens can be used:
{{ post_link }} - absolute URL of post
{{ post_title }} - post title
{{ post_date }} - post date/time
{{ post_excerpt }} - post excerpt
{{ post_slug }} - post id
{{ post_number }} - number of post as displayed (0, 1, 2, ...)
[...]
More info here:
http://www.cyberiada.org/cnb/news-manage...ns-plugin/
(Sorry for the poor docs, I'll update them...)