Template for every Tiddler (that is a tag)

Hi there,

I’m trying to build up an image-gallery in a TiddlyWiki, sorted by tags. Now I am trying to get the list-thumbnail-macro working for every tiddler that is a tag itself.
This is the template (which doesn’t work):

<$list filter="[all[current]tags[]!is[system]]">
<<list-thumbnails filter:"[all[current]tagging[]]">>
</$list>

I would appreciate any hints …

<$list filter="[all[current]tags[]!is[system]]">
<<list-thumbnails filter:"[all[current]tagged[]]">>
</$list>

No, this doesn’t work out.

I’m quite sure

<<list-thumbnails filter:"[all[current]tagging[]]">>

is correct, because if I put this code directly into the tiddler with the name of the tag it works like expected.

The easy (but not so elegant) solution is to tag the tiddlers with the name of a tag with the tag “Tag”. (Understood? :grin:) And let the template filter be "[all[current]tag[Tag]]"

I always have something like this. AND, if you do it right, it will work even with “missing” tiddlers (tags that don’t yet exist as tiddlers).

<$list filter="[tag<currentTiddler>limit[1]]" variable="">

<<list-thumbnails filter:"[all[current]tagging[]]">>

</$list>

To clarify this filter only works in the current Tiddler and lists Any tag it has. You then exclude any system tags.

It all depends on what’s is the current tiddler and where you code is. It could be in a view Template or hard coded in a tag that tags tiddler.

As I want to apply the list-thumbnails-macro to every tiddler with the name of a tag it seemed right for me to refer to [all[current], but tags[] didn’t lead further …

Perhaps in a tiddler tagged for the view template you could use a filter [all[current]is[tag]].

Thank you! (and thank you @Springer !)
This works out well, too.

As most of the times I’m struggling with the code, the solution seems to be so obvious … if I get it presented. :wink:

PS: Can’t mark two posts as a solution. :frowning:

1 Like