Joshua Fontany, Thank you for the explanation. Unfortunately, I don't know how to find my "VIEWTEMPLATETIDDLER".
I tried plugging different things like "$:/core/ui/ViewTemplate" and "storyTiddler" into the space and it didn't work. I also tried using your code just like you had it, but that didn't work either :( On Thursday, April 8, 2021 at 6:41:01 AM UTC+8 [email protected] wrote: > > UI elements tagged with `$:/tags/ViewTemplate` are only rendered for > Tiddlers appearing in the Story River. It is part of the ViewTemplate > passed to the list widget that renders the Story River. > > Transcluding it into a modal fails to trigger that rendering - because TW > considers all Modals to be "outside" of the Story River (which CSS renders > as "on top of"). > > In this case, you can call the ViewTempalte section directly AS the Modal, > and then pass it a new `currentTiddler` value to use inside the Modal. Note > the $ on the `$param=` attribute, and the lack of one on the > `currentTiddler=` attribute. > ``` > <$list filter="[tag[FooVideo]sort[title]]"> > <$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" > $param="VIEWTEMPLATETIDDLER" currentTiddler=<<currentTiddler>>> > <$text text={{!!caption}}/> > </$button> > </$list> > ``` > Ref: https://tiddlywiki.com/#WidgetMessage%3A%20tm-modal > > Best, > Joshua Fontany > On Tuesday, April 6, 2021 at 6:07:51 AM UTC-7 Sapphireslinger wrote: > >> Dear Eric, >> >> Your code works great. >> >> But it only works for me if each of my tiddlers tagged with FooVideo has >> this pasted directly in it: >> >> <div class="container"><iframe src={{!!url}} >> frameborder="0" allowfullscreen class="video"></iframe></div> >> >> *The moment I try to automate that* by putting >> >> <$list filter="[<currentTiddler>tag[video]]"> >> <div class="container"><iframe src={{!!url}} >> frameborder="0" allowfullscreen class="video"></iframe></div> >> </$list> >> >> in a tiddler tagged $:/tags/ViewTemplate ... then every tiddler (tagged >> with both FooVideo and video, by the way) still has the correct video >> displayed, but when I click on the list of contents your code gives me, *the >> modals pop up empty now*. >> >> May I ask if you would happen to know why? >> On Sunday, April 4, 2021 at 5:30:33 PM UTC+8 Sapphireslinger wrote: >> >>> Thank you very much! >>> >>> On Tuesday, March 30, 2021 at 3:09:04 PM UTC+8 Eric Shulman wrote: >>> >>>> On Monday, March 29, 2021 at 11:47:06 PM UTC-7 Sapphireslinger wrote: >>>> >>>>> *Problem 1: How to get "1. Introduction" to display as a link not a >>>>> button?* >>>>> *Problem 2: How to call all FooVideos with a list filter where >>>>> clicking a link (of the caption) opens it in the tm-modal? * >>>>> >>>> >>>> <$list filter="[tag[FooVideo]sort[title]]"> >>>> <$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" >>>> param=<<currentTiddler>>> >>>> <$text text={{!!caption}}/> >>>> </$button> >>>> </$list> >>>> >>>> Notes: >>>> 1) Removed trailing / from <$list> widget (use matching /$list widget >>>> instead) >>>> 2) Use class=" tc-btn-invisible tc-tiddlylink" to make the button >>>> appear as clickable link instead of a button >>>> 3) Variables used as parameter values need doubled angled brackets >>>> (i.e., <<currentTiddler>>) >>>> 4) Use $text widget to display caption (avoids unwanted links if there >>>> is any CamelCase in caption text) >>>> >>>> enjoy, >>>> -e >>>> >>> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/285e77d5-1b8e-4371-a77d-5263720c853an%40googlegroups.com.

