How to tweak viewtemplate tiddlers so they fold / unfold

120 views
Skip to first unread message

David Gifford

unread,
Apr 20, 2020, 3:14:34 PM4/20/20
to TiddlyWiki
Hi all

Saq and I are working on an update to TiddlyBlink. See progress here: https://giffmex.org/experiments/tiddlyblink.experiment.html

Saq recommended that the references section of the tiddlers be hide-able on folding the tiddler. I think that would be a great feature. But my ambition got a head of me.

The fold-tiddler description in tiddlywiki.com only describes the mechanism. It doesn't suggest one could tweak it. The various shadow tiddlers for folding don't suggest that, either.

Is it possible to have a button that hides/reveals both the text field of the present tiddler and the viewtemplate element at the bottom of the present tiddler but does not affect the same viewtemplate element at the bottom of the other tiddlers?
Message has been deleted

Saq Imtiaz

unread,
Apr 20, 2020, 4:59:41 PM4/20/20
to TiddlyWiki
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/ViewTemplate/body.tid

That first reveal is the trick. Wrap it around the templates for the references.

David Gifford

unread,
Apr 20, 2020, 5:49:09 PM4/20/20
to TiddlyWiki
And here I thought you were working long hours! :-) Thanks, I will figure out how to do that. Blessings!

TonyM

unread,
Apr 20, 2020, 9:25:36 PM4/20/20
to TiddlyWiki
David,

Since the tags are hidden when folded if you use the tag pill for $:/tags/ViewToolbar you see the view template uses $:/core/ui/ViewTemplate/tags to display the tags; 

$:/core/ui/ViewTemplate/tags contains
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
</$reveal>

So I applied that reveal to your tiddler $:/.giffmex/ViewTemplate/refstranscludecollapse
and attached it in this post.

Regards
Tony
UpdatedTiddler.tid

Peter Buyze

unread,
Apr 21, 2020, 3:19:19 AM4/21/20
to TiddlyWiki forum
Cooooool.



20 Apr 2020, 22:14 by dgif...@crcna.org:
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

David Gifford

unread,
Apr 21, 2020, 10:27:21 AM4/21/20
to TiddlyWiki
TonyM

Thank you so much for that! I tweaked it and the results are here:

Julio Peña

unread,
Apr 21, 2020, 1:47:30 PM4/21/20
to TiddlyWiki
Hey David,

Tiddlyblink looking real polished there.
I likes! Can't wait for the finished product.

Regards,
Julio

David Gifford

unread,
Apr 21, 2020, 2:03:40 PM4/21/20
to TiddlyWiki
Thanks Julio!
Reply all
Reply to author
Forward
0 new messages