Ticket #4082 (closed Bug: fixed)
idsNotToList bug
| Reported by: | spliter | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | Past |
| Component: | Templates/CSS | Keywords: | |
| Cc: |
Description
When you have defined id's in "idsNotToList" of your navtree_properties you really don't have those id's visible in navtree, but their LI elements still present. This is happening due to code of "portlet_navtree_macro":
<li class="navTreeItem"
tal:repeat="item options/children"> <tal:no-display condition="not: item/no_display">
...
As you can see condition follows after LI element :( I suggest to wrap the whole LI elemnt within tal:block with definition and move condition to LI element:
<tal:block repeat="item options/children"> <li class="navTreeItem"
tal:condition="not:item/no_display">
...
Change History
Note: See
TracTickets for help on using
tickets.

Yes - stupid code fixed. Good catch, thanks. :)