betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

28 July 2005

Plone NavTreePortlet Sortorder Problem and Workaround

Objects "falling out" of the sort order

Having problems with objects not appearing in the right sort order in your Plone NavTreePortlet? I had that problem on a Plone 2.0.5 with LinguaPlone, which gives me the "new style" navigation portlet. Sometimes, especially after changing the id of an object, that object would just "fall down" to the end of the list, no matter where it was sorted in inside the folder_contents list. Read on for a workaround...

The same thing happened after we added and sorted in a lot of folders. They got out of order. It turns out, what happens is that the Catalog is getting messed up. So there is a workaround: When this happens, go into the ZMI, locate the root of your portal, open the "portal_catalog" object there. Hit the "Indexes" tab. Check the "getFolderOrder" and click on "Reindex". This takes only an instant. It rebuilds the index of the order that folders are in.

I think newer versions of Plone will have code to do this automatically after reordering operations. And if you dig deep enough you might discover this anyway. But still this workaround might be handy if you happen to mess with folder id's in the ZMI, and for other problems it might give you a hint where to look.

Posted by betabug at 15:12 | Comments (0) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< OS X Server 10.3 Cyrus Mailserver Trouble? | Main | Im Ausgang in Piräus >>
There are no comments.
You can trackback to:
There are no trackbacks.
Leave a comment