4313 in the user list archive has the response about using 'SORT_BY_SEQUENCE' to fix the sorting...
Iterator it = root.getChildren(ItemType.CONTENT, ContentHandler.SORT_BY_SEQUENCE).iterator(); http://webmail.magnolia.info/Lists/user-list/Message/4313.html ...but what does it mean? 'simpleNavigation' is a tag. The above looks like a scriptlet or something you need to compile into the simpleNavigation class. Magnolia iterates content nodes, but how do you make that iterator object iterate through this simpleNavigation tag? Does it have an iterator property?? <cmsu:simpleNavigation startLevel="1" expandAll="show" itr="it" /> -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 6:40 AM To: [email protected] Subject: [magnolia-user] Problem with sorting (SimpleNavigationTag) Hi all When using the SimpleNavigation Tag, I encounter the following problem: The navigation is not sorted by sequence (i.e. not in the sequence as displayed in the admin window). When looking at the code, I can see that SimpleNavigationTag uses SORT_BY_SEQUENCE (which, I think, is what I want). Before I dig deep into the sorting stuff in Content.java: Does anybody know what I'm doing wrong? Thanks sala ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
