List filters and external links

71 views
Skip to first unread message

David Gifford

unread,
Sep 13, 2014, 12:00:45 PM9/13/14
to tiddl...@googlegroups.com
Hi all

Is there a way to create a list filter where what is displayed are tiddler titles, but the links are to external links in the url field of those tiddlers

I am looking for something roughly like this, but this doesn't work:

<$list filter="[tag[Philosophy]sort[title]]">
<$link to={{!!url}} format="htmlwikified"><$view field="title"/></$link>
</$list>

Use case: create TW files for each book I read. Create tiddlers for each of those files in a central hub TW. Tiddler is tagged by the book's topic, and the filepath to that file is added to the url field.

Then I have listwidgets that turn up the tiddlers by topic, and when I click on the link I open the file, rather than the tiddler.

Blessings,

Jeremy Ruston

unread,
Sep 13, 2014, 12:48:43 PM9/13/14
to TiddlyWiki
Hi Dave

The trick is that you should use the HTML <a> tag for external links, rather than the <$link> widget. For example:

<$list filter="[tag[Philosophy]sort[title]]">
<a href={{!!url}} target="_blank"><$view field="title"/></a>
</$list>

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.
For more options, visit https://groups.google.com/d/optout.



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

David Gifford

unread,
Sep 13, 2014, 12:54:40 PM9/13/14
to tiddl...@googlegroups.com
Well...I tried several things a lot like that with a href, but they didn't work. You make it look so easy!

You know, as the only native speaker of this language, you really need to start reproducing! :-)

Here is my final, working version

<span class="indent1"><$list filter="[tag[PhilBook]sort[title]]">
<a href={{!!url}} target="_blank" class="tc-tiddlylink-external"><$view field="title"/></a><br>
</$list>

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/Ge88qKXYWYk/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.



--
David Gifford
Christian Reformed World Missions, Mexico City
Reply all
Reply to author
Forward
0 new messages