Ticket #4082 (closed Bug: fixed)

Opened 7 years ago

Last modified 3 years ago

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

comment:1 Changed 7 years ago by limi

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:2 Changed 3 years ago by hannosch

  • Component changed from Visual and templates to Templates/CSS
Note: See TracTickets for help on using tickets.