Tiddler + subtiddler and a Button

106 views
Skip to first unread message

Mohammad

unread,
Jun 26, 2018, 12:48:21 AM6/26/18
to TiddlyWiki
Assume there is a tiddler called A.
And there are different number of sub-tiddlers i.e. tiddlers tagged with A

So there is a structure like

  -- A
    |- S01
    |- S02
    |- S03
    |- S04
    |-.......
   

All Sxx tiddlers are tagged with A. I call A the parent tiddler and Sxx the subtiddlers (child)

I want to have a button in parent tiddler to be clicked and transclude (show only the text) of subtiddlers in turn, i.e by each button click one subtiddler is shown.


It would be great if the code can be wrapped into a macro to be used everywhere for other set (like B--(sub01, sub02, ...)


/Mohammad

TonyM

unread,
Jun 26, 2018, 1:32:32 AM6/26/18
to TiddlyWiki
Mohammad,

To start you on your journey, use a tag pill for A or https://tiddlywiki.com/#list-links-draggable%20Macro to order the tagging tiddler and create the list field with the subtiddlers listed in it.

Now you can use the various order and listops operators to step through the tiddlers in the list field.

I have not done this yet, but will soon as I need to learn this aspect.

Regards
Tony

Jed Carty

unread,
Jun 26, 2018, 8:24:13 AM6/26/18
to TiddlyWiki
There are a number of slideshow macros that do this. The image gallery I made does pretty much exactly what you are describing, although it does it with images. https://ooktech.com/TiddlyWiki/PhotoGallery/

If you want a slideshow that the wizardwizard can be set to use the tag A, but that is probably more than you want https://ooktech.com/TiddlyWiki/WizardWizard/

I think that you can do what you want by editing the photogallery macro from the first link, just change the part of the macro that uses the $image widget to transclude the tiddler instead. And maybe change the part that says 'Photo gallery' if that isn't appropriate for what you are doing.

Mohammad

unread,
Jun 26, 2018, 11:31:21 AM6/26/18
to TiddlyWiki
Jed, I am playing with PhotoGallery to see how it works. I will share my findings.

Cheers
Mohammad
Reply all
Reply to author
Forward
0 new messages