[TW5] Transclude tiddler on list empty

87 views
Skip to first unread message

Danielo Rodríguez

unread,
Sep 28, 2015, 6:35:27 PM9/28/15
to TiddlyWiki
Hello, yes, again,

I was wondering if there is possible to use the "empty message" of the list widget to set a transclusion.

This can be useful to show a meaningful message (with icons, and some long text) in case the list is empty.

Many thanks.

Jeremy Ruston

unread,
Sep 28, 2015, 6:39:30 PM9/28/15
to TiddlyWiki
Hi Danielo

The content of the emptyMessage attribute is wikified. Try something like:

<$list filter="[tag[mytag]]" emptyMessage="""<$transclude tiddler="MyTitle"/>""" template="MyTemplate"/>

Best wishes

Jeremy.


--
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.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c71506d1-46da-453a-a2a6-498e41f013bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
Sep 29, 2015, 3:10:49 AM9/29/15
to TiddlyWiki, jeremy...@gmail.com
Hello Jeremy,

Thank you very much, I was trying something similar:

<$list filter="[all[shadows+tiddlers]prefix{$:/state/OTW/Repository/Selected}]"
empty={{$:/plugins/danielo515/OctoWiki/ui/Loading}}>

But it was not working. Sometimes I can't determine where to use a <<variable>>, when to use {{wikitext}} and when to use a widget as parameter.

Many thanks.

Danielo Rodríguez

unread,
Sep 29, 2015, 9:17:52 AM9/29/15
to TiddlyWiki, jeremy...@gmail.com
One thing I have noticed is that the entire widget tag should be on the same line. Otherwise it will not work. Are you aware of that Jeremy?

Tobias Beer

unread,
Sep 29, 2015, 9:47:35 AM9/29/15
to TiddlyWiki, jeremy...@gmail.com
 Hi Danielo,
 
One thing I have noticed is that the entire widget tag should be on the same line. 
Otherwise it will not work. Are you aware of that Jeremy?

This works rather fine for me on TiddlyWiki.com:

<$list filter="[tag[DoesntExist]]" emptyMessage="""<$transclude

tiddler="About"

/>""" template="MyTemplate"/>

Best wishes,

— tb

Tobias Beer

unread,
Sep 29, 2015, 11:19:31 AM9/29/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
The content of the emptyMessage attribute is wikified. Try something like:

<$list filter="[tag[mytag]]" emptyMessage="""<$transclude tiddler="MyTitle"/>""" template="MyTemplate"/>
Best wishes,

— tb 

Jeremy Ruston

unread,
Sep 29, 2015, 11:23:41 AM9/29/15
to Danielo Rodríguez, TiddlyWiki
Hi Danielo 
<$list filter="[all[shadows+tiddlers]prefix{$:/state/OTW/Repository/Selected}]"
empty={{$:/plugins/danielo515/OctoWiki/ui/Loading}}>

The attribute is "emptyMessage", not "empty".

Best wishes

Jeremy.

On Tue, Sep 29, 2015 at 2:17 PM, Danielo Rodríguez <rdan...@gmail.com> wrote:
One thing I have noticed is that the entire widget tag should be on the same line. Otherwise it will not work. Are you aware of that Jeremy?



Reply all
Reply to author
Forward
0 new messages