Page 1 of 1

Menu Items added to top

Posted: Mon Dec 02, 2013 12:21 pm
by eddyR3
Hey guys is there a way to default new pages/menu items to go to the top of the list?

:)

Many thanks in advance,
Eddy :)

Re: Menu Items added to top

Posted: Tue Dec 03, 2013 9:10 am
by rotezecke
you could run the foreach loop twice. first time, you check for nodes that have been modified ($node->modified > some_cut_off_date), assign your results, and run the foreach loop again, (this time $node->modified <= some_cut_off_date unless you want to have new pages appear twice) and use the assign result wherever you want. not sure what that does to performance.

Re: Menu Items added to top

Posted: Tue Dec 03, 2013 9:45 am
by eddyR3
Thankyou for the reply, unfortunately, i dont really understand how/what you are doing :(

LOL Sorry, can you clarify this a bit for me please?

Many thanks

Re: Menu Items added to top

Posted: Tue Dec 03, 2013 10:03 pm
by velden
I *think* you want new pages to the top of the pages list in BACKend of cmsms. Not sure though.

Re: Menu Items added to top

Posted: Tue Dec 03, 2013 10:07 pm
by eddyR3
Well, both front/backend ideally :) thanks for getting back to me! :)

Re: Menu Items added to top

Posted: Fri Dec 06, 2013 12:01 pm
by eddyR3
Any other suggestions on this? :)

Many thanks,
Eddy