Rick Hurst Web Developer in Bristol, UK

Menu

plone navigation current folder/ node

I wonder if I am missing here – While the plone navtree is set up to help me apply a style to the currently selected item, I can’t think of a way to apply a style to the parent folder of that item. If the current location is something like:-

root -> sub-folder 1 -> item 3

“item 3″ will have a class of :”navTreeCurrentItem” applied to it, but I would also like “sub-folder 1” to have a class, something like “navTreeCurrentNode” so that I could apply a style to that too.

I can’t think of a straightforward way (well, any way in fact, I get so lost trying to find the relevant bit of code in plone 2.5) to do this, please let me know!

archived comments

I was able to figure out myself!
The property node/currentParent retirns whether a given node is a parent of the current item

Tech-PJ 2007-06-15 14:12:28

Hi Ricky,

I am trying to establish the above in our plone site. But wondering what exactly needs to change in portlet_navtree_macro.

Do you know what needs to be done?

Thanks
Tech-PJ

Tech-PJ 2007-06-15 13:01:32

Posted in Uncategorised