Hi, I was working on a site this evening and found something strange. I have a structure like below on my site
- doc 1
- doc 2
- doc 2.1
- doc 3
- doc 3.1
- doc 3.2
- doc 4
The only thing is that doc 2.1 is hidden from the menu because the "Show in menu" checkbox in not selected. Now when I navigate to doc2 on the site then the doc2 entry in the tree gets the "activeParentRowTpl" applied which is not what I intendend. I know that technically it is a folder because it has doc2.1 as a child, but since it does not show in the menu I expected doc2 to behave the same as a document with really no children.
Currently I changed line 157 in the wayfinder.inc.php file. I added an extra check for the number of children to be more than 0 "&& $numChildren>0". This gives me exactly the result I was looking for.
I don’t know if it is a bug, because after all it is a folder, but it just would not work for me.