Menu Items added to top

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

Menu Items added to top

Post 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 :)
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: Menu Items added to top

Post 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.
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

Re: Menu Items added to top

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Menu Items added to top

Post by velden »

I *think* you want new pages to the top of the pages list in BACKend of cmsms. Not sure though.
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

Re: Menu Items added to top

Post by eddyR3 »

Well, both front/backend ideally :) thanks for getting back to me! :)
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

Re: Menu Items added to top

Post by eddyR3 »

Any other suggestions on this? :)

Many thanks,
Eddy
Post Reply

Return to “The Lounge”