[TW5] Popup an info tiddler?

124 views
Skip to first unread message

Stephan Hradek

unread,
May 22, 2017, 6:32:24 AM5/22/17
to TiddlyWiki
Maybe someone can point me into the right direction.

I am trying to achieve the following:

I have a list of links for which I also might have an information stored in a tiddler. So in case the information tiddler exists, I want to render an (i) and upon click the information tiddler should pop up.

My attempt was like this:

I created an info template:

title: info
Content:
<$reveal state=<<currentTiddler>> type="nomatch" text="">
<$button class="tc-btn-invisible" popup="!!popupstate">{{$:/core/images/info-button}}</$button>
<$reveal type="popup" state="!!popupstate">
<
<currentTiddler>>
</$reveal>
</$reveal>

An example usage would be

{{My Useful Link Info||info}}

Unfortunately nothing pops up.

So at the moment I'm using this to just navigate to the information tiddler, which shows that at least the info template works:

title: info
Content
<$reveal state=<<currentTiddler>> type="nomatch" text="">
<$button class="tc-btn-invisible" to=<
<currentTiddler>>>{{$:/core/images/info-button}}</$button>
</$reveal>

Thanks for reading this and thanks in advance for every useful hint what could be wrong.

PMario

unread,
May 22, 2017, 6:51:28 AM5/22/17
to tiddl...@googlegroups.com
Hi Stephan,

Try this:

<$reveal state=<<currentTiddler>> type="nomatch" text="">
<$button class="tc-btn-invisible" popup=<<qualify "test">> >{{$:/core/images/info-button}}</$button>
<$reveal type="popup" state=<<qualify "test">> >

<$transclude />

</$reveal>
</$reveal>


and have a closer look at: http://tiddlywiki.com/#qualify%20Macro

have fun!
mario

Stephan Hradek

unread,
May 22, 2017, 8:19:19 AM5/22/17
to TiddlyWiki
Thanks so much Mario,

Works like a charme.

PMario

unread,
May 22, 2017, 12:12:40 PM5/22/17
to TiddlyWiki
On Monday, May 22, 2017 at 2:19:19 PM UTC+2, Stephan Hradek wrote:
Thanks so much Mario,

Works like a charme.

You  are welcome :)
-m
Reply all
Reply to author
Forward
0 new messages