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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/96ab59a7-a4f4-4166-8ff9-954890b80827n%40googlegroups.com.

Reply via email to