Page 1 of 1
Moving News Items Up/Down
Posted: Thu Mar 23, 2006 10:27 pm
by Undercover
I would like to know if it's possible to move news items up or down without having to rewrite them all in the desired order.
I've tried fiddling with the "Post Date" and "Start Date" fields, but I've had no luck moving the news-items up or down.
I sure would appreciate any help.
Perhaps, in an updated version, there could be up and down arrows like there is in the "Pages" area of CMSMS.
Thanks again for any help.
Re: Moving News Items Up/Down
Posted: Sat Mar 25, 2006 2:18 pm
by Dr.CSS
do this help
{cms_module module="news" number="5" category="beer"}
Parameters
* (optional) start="5" - Start at the nth item -- leaving empty will start at the first item.
* (optional) number="5" - Maximum number of items to display =- leaving empty will show all items.
* (optional) dateformat="%b %d, %Y" - Format to display the article's post date with. This is based on the strftime function and can be used in your template with $entry->formatpostdate. It defaults to %x, which is the default date format for the sever's locale.
* (optional) makerssbutton="true" - Make a button to link to an RSS feed of the News items.
* (optional) category="category" - Only display items for that category. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories.
* (optional) moretext="more..." - Text to display at the end of a news item if it goes over the summary length. Defaults to "more..."
* (optional) summarytemplate="sometemplate.tpl" - Use a separate template for displaying the article summary. It have to live in modules/News/templates.
* (optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.
* (optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.
* (optional) sortby="news_date" - Field to sort by. Options are: "news_date", "summary", "news_data", "news_category", "news_title". Defaults to "news_date".
* (optional) sortasc="true" - Sort news items in ascending date order rather than descending.
* (optional) lang="en_US" - Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.
from the module help
mark