Hi Christopher,

use ContentHandler.SORT_BY_SEQUENCE to sort your menu items according to their original positions. See below the example.

Iterator it = root.getChildren(ItemType.CONTENT, ContentHandler.SORT_BY_SEQUENCE).iterator();

Christopher Schnell wrote:

Dear all,

for one project, i had built a custom navigation in magnolia 2.0. It had some special features but was based on the example-template that came with 2.0. When I tried to transfer my navigation it seemed to work at the first glance. But what doesn't work at the moment ist insertion of new pages in the navigation-tree. If I add a new page and move it say in the middle of my navigational structure it is at the right place in the website overview. If I show pages in the browser, the latest added page is the latest shown in the menu.

Can anybody help me on how navigation has changed in 2.1? Since there is no sample-navigation any more (onyl the simpleNavigation tag) I don't know where to start. I have to admit that I am not so familiar with JSP-Documents, maybe the mistake is that I still use the old fashioned way?

Thanks and regards,

Christopher


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

.

--

Regards,
Alex Kirin


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to