It’s not quite so easy, as this page isn’t called from within the Modx framework, so we don’t immediately have access to the $modx object. We’ll have to think about this a bit! I’ve put it in as a config setting at the top.
@raum -- I’ve implemented something along the lines of what you’ve suggested -- there is now a config setting for "mode" which can be "tree" (new) or "breadcrumbs" (as before).
Code at the top of this thread is updated.
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
I’ve updated again to 1.0.3 which offers the following improvements:
- Offers different styles for the tree indicator (I prefer the original, but the others raum suggested are there to choose from)
- Filter out unpublished documents better. This isn’t perfect yet -- it only uses the "published" tick box, rather than publish and unpublish dates. If we were using the modx api this would be much better
- Sort by menuindex rather than title. This isn’t foolproof -- if two items with the same parent have the same menuindex, it can get confused. The secret is to make sure menuindexes are unique. Again this would be better using the modx api rather than reinventing the wheel
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
where did you add $caption = html_entity_decode($caption, ENT_QUOTES);? I tried it too ...