wikilabs / plugins

TW5 plugins: https://wikilabs.github.io
30 stars 8 forks source link

[TocP] Question #140

Open MagicJF opened 11 months ago

MagicJF commented 11 months ago

Is there a way to make TocP pluggin work if the parent field is a list of tiddlers? Example1 works, Example2 is what i want to achieve

Example1: tiddlerC parent field = tiddlerB tiddlerB parent field = tiddlerA

In tiddlerC: <<tocP root field"parent">> Result:
tiddlerA::tiddlerB::tiddlerC

Example2: tiddlerC parent field = [[tiddlerB]] [[tiddler2]] tiddlerB parent field = [[tiddlerA]] tiddler2 parent field = [[tiddler1]]

In tiddlerC: <<tocP root field"parent">> Result:
[[tiddlerA::tiddlerB::tiddlerC]] [[tiddler1::tiddler2::tiddlerC]]

Thanks!

pmario commented 11 months ago

Hi, -- No. There is only 1 parent value allowed at the moment.

One major goal of tocP was to have a well defined and simple structure. I would like to have the possibility to focus at tiddler in the story river and it should be possible to dynamically expand and close the tocP tree. Having different parents makes this goal very hard to achieve.

There is an open PR which I did review again 2 days ago. I am considering to create a very similar possibility using different names. It would be possible to "merge" different trees.

The problem I do have at the moment, is that we need a visual indication, that there are 2 or more different parent fields in 1 tree. I will think about it.