[Solved]News Module item order

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]News Module item order

Post by jasnick »

Using 1.10

I have just discovered that on all my sites that use a PostDate for news items, they are shown online in descending order even though ascending order is selected in Admin and they display in the list in Admin correctly. I added the parameter sortasc="true" to the News tag and it is now showing correctly online.

If a tag is needed, why is the choice given in admin?

Thanks.
Last edited by jasnick on Sat Nov 26, 2011 8:27 am, edited 1 time in total.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: News Module item order

Post by staartmees »

Selecting 'ascending order' in the adminsection only has effect on how your newsitems are shown in the adminsection. To show your newsitems on the frontend in ascending order, you have the use the sortasc="true" parameter.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: News Module item order

Post by jasnick »

Thanks staartmees - I learn something every day!
Post Reply

Return to “CMSMS Core”