List of tiddlers with clickable tags formated as links

106 views
Skip to first unread message

Tom

unread,
Aug 3, 2015, 11:54:17 AM8/3/15
to TiddlyWiki

Hi!


I want to display a list of tiddlers with a specific tags. Each item/tiddler should be displayed with a list of clickable tags (its tags formatted as hyperlinks). How do I have to modify the following code (which displays the tags as plain text) in order to achieve this?


    <$list filter="[!tag[hidden]tag[contact]sort[]]">
    * <$link to={{!!title}}><$view field="title"/></$link> <$view field="tags"/>
    </$list>

Regards,
Tom

Mark S.

unread,
Aug 3, 2015, 1:43:59 PM8/3/15
to TiddlyWiki
Here's what I have:

<ul><$list filter="[!tag[hidden]tag[Contacts]sort[]]">
    <li> <$link to={{!!title}}><$view field="title"/></$link> :
 <$list filter="[all[current]tags[]]"><$link to={{!!title}}> <$view field="title"/></$link></$list>
    </li></$list>
</ul>

You need to make a sub-list within the main list. I switched html for the bullets code, which AFAIK doesn't work inside <$list>.

I think that should get you started.
HTH
Mark

Rustem

unread,
Aug 3, 2015, 3:37:20 PM8/3/15
to TiddlyWiki
The bullets and such sort of work inside list widget, you just need to add a newline:


<$list filter="[!tag[hidden]tag[contact]sort[]]">
* <$link to={{!!title}}><$view field="title"/></$link> <$view field="tags"/> </$list>

The result has lines spaced wider, so if that bothers you, then yes, use <li>.

lith

unread,
Aug 4, 2015, 3:37:45 AM8/4/15
to tiddl...@googlegroups.com

Here's what I have:

<ul><$list filter="[!tag[hidden]tag[Contacts]sort[]]">
    <li> <$link to={{!!title}}><$view field="title"/></$link> :
 <$list filter="[all[current]tags[]]"><$link to={{!!title}}> <$view field="title"/></$link></$list>
    </li></$list>
</ul>

Thanks a lot. That's easier than expected and close to one of my previous attempts.

You can actually use wiki markup. This is what I ended up with:


    <$list filter="[!tag[hidden]tag[contact]sort[]]">
   
    * <$link to={{!!title}}><$view field="title"/></$link> -<$list filter="[all[current]tags[]]"><$link to={{!!title}}> <$view field="title"/></$link></$list>
   
    </$list>

Regards
Reply all
Reply to author
Forward
0 new messages