How to use list filters with "tm-modal"

86 views
Skip to first unread message

Shash

unread,
May 27, 2015, 3:49:18 AM5/27/15
to tiddl...@googlegroups.com
Hi all,

I am using the below to gets a few of my hyperlinks open as modal overlay. 

<$button message="tm-modal" param="Link1" class="tc-btn-invisible tc-tiddlylink">link1</$button>

The requirement now is that I need the same modal overlay for a a number of tiddlers (with the same tag) listed (using <$list> filters) in another tiddler. Is there any easier way to achieve this rather than changing the param and the button for each of my tiddler which is to be listed. 

Thanks!
Shash

c pa

unread,
May 27, 2015, 10:09:26 PM5/27/15
to tiddl...@googlegroups.com
Try This: (You'll have to define your own filter)

\define modalLink(tiddlerName,message)
    <$button message="tm-modal"
            parammodalLink="$tiddlerName$"
            class="tc-btn-invisible tc-tiddlylink
    ">
        $message$
    </$button>
\end

<$list filter="[tag[done]]">
    <$macrocall $name="modalLink"
            tiddlerName=<<currentTiddler>>
            message=<<currentTiddler>>
    />
    <br/>
</$list>


Shash

unread,
May 28, 2015, 4:14:37 AM5/28/15
to tiddl...@googlegroups.com
Works like a charm, Just a correction required. Instead of this 
parammodalLink="$tiddlerName$"

 we need to make it 

param="$tiddlerName$"


Regards
Shash
Reply all
Reply to author
Forward
0 new messages