Loading...
 

Plugin TOC (2010-07)


TOC plus structId and pagename params not working (v4.2)


As posted at TW dot org

The "pagename" parameter of {toc} seems to be ignored.

On any new wiki page {toc} would not be expected to show anything since the page is not part of a structure. This works as expected.

However change that to {toc maxdepth=3 shownum=1 structId=15} (or any other valid structure Id) and the first three levels of the structure are correctly listed.

From that structure listing, pick a target page, preferably one which is known to have sub-ordinate pages in the structure, for example {toc maxdepth=3 shownum="1" structId=15 pagename=Group#03} or {toc maxdepth=3 shownum="1" structId=15 pagename=Smith_Fred_1234}

This should list the structure below page "Group#03" or "Smith_Fred_1234", but instead it lists the root of the structure, as if the "pagename" was missing.

Also, for a page in a structure, the pagename does not default to the current page (as per documentation at http://doc.tikiwiki.org/Structure+User ) when structId is used

Further background at http://tikiwiki.org/tiki-view_forum_thread.php?comments_parentId=37636&topics_sort_mode=lastPost_desc&forumId=4 This is really hurting us.

Status: unresolved



Cloned from Google wave
RR TBT - Our First New Tiki Bug

This morning (2 July 2010) I've opened our first bug report over at dev.tikwiki.org

This is partly Bev's fault, when she raised her query about a wiki page appearing to two structures :-)

In the Forum I ended my response to her with a suggestion

"One related thought, where an individual is included in a structure, rather than re-entering their children manually, you can add the following line of code in the narrative and the children you've entered in the structure will appear as if by magic."

I then started to think about her original post and realised that if the structure changed, then so should the output from the command, which indeed it does.

So I needed to update my recommendation to use a form of the command which would only list the individuals offspring from the appropriate structure and not vary based on current structure.

And it was whilst doing those experiments that I found what I think is an un-reported Tiki bug Tiki bug.

If you're interested you'll find my bug report here
http://dev.tikiwiki.org/tiki-view_tracker_item.php?itemId=3465&highlight=3465


Contributors to this page: @MartinB and MartinB. .
Page last modified on Sunday 12 of November, 2023 02:58:10 CST by @MartinB.