anthony rogers wrote:
Here another little gem :)
Well here I am messing around with stuff as always and I go to move a page
up my little navigation bar... so I move the page in magnolia and hu! Its
not moved in my navigation.. In my navigations JSP its looks like this to
get the children of a node page:
Iterator it=vtopLevel.getChildren().iterator();
And just loop over them getting the page out:
Content c = (Content)it.next();
Simple as that... so why are they no-longer in the order I changed in
magnolia? Any ideas?
aNt
There are several ways to sort a collecion of nodes. I think default
sorting is the way you want, the order they have in the website-tree.
Could be that there is a cached version of the page, and changing the
order of nodes does not flag for the cached pages to be replaced. Try
deleting cache, or simply edit content and re-active the nodes in question.
Check out ContentHandler's SORT_BY_SEQUENCE when using getChildren:
http://magnolia.sourceforge.net/apidocs/info/magnolia/cms/core/Content.html#getChildren(info.magnolia.cms.core.ItemType,%20int)
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------