TOC plus structId and pagename params not working (v4.2)?
I'm part of a Family History One Name study group currently experimenting with Tiki v4.2. Its working well for us in many aspects. We're using structures extensively, to link individuals to their parents and children. Some of these structures have the potential to grow to be 15+ generations deep and 1000's of individual wide.
Having built the structure for a family, we wanted to avoid entering the children of an individual manually in the narrative on that individual's wiki page and found {toc maxdepth=1 shownum="1"} works fine, neatly listing their offspring.
We subsequently built additional structures to link these same individuals to source documents (wills, census returns, etc) and also locations. The {toc} is correctly sensitive to the current structure, so we needed to tell it which structure to use to keep the list of offspring constant.
http://doc.tikiwiki.org/Structure+User shows the parameter structId to the {toc} plugin. Great. So {toc maxdepth=1 shownum="1" structId=1} should give us a list of offspring regardless of which structure.
Except it doesn't seem to.
Using the structId paramater seems to list the structure from the top node and not the current page. The default value (the current page name) for the parameter pagename is being ignored.
OK, manually adding the pagename as {toc maxdepth=1 shownum="1" structId=1, pagename="Target_Individual"} should fix it. Except the pagename seem to be completely ignored. The result is the same as without the pagename parameter.
Is this user error, a design limitation or a bug? If a bug, does anybody know if is there a patch or work-around to fix it, please? I couldn't find one, but might be looking in the wrong places. If this is a bug, then I guess I need to report it to the Development community. This is really impacting our experience with Tiki, any suggestions welcomed.
Thanks
Martin