Below is one way to do it. Keeping the links in proper order on all the
tiddlers will take more thought.
*Tiddler*
title: *Any title you want*
tag: *$:/tags/ViewTemplate*
\define title() <$view field="title"/>
\define caption()
<$set name="tv-wikilinks" value="no">
<$set name="display" tiddler=<<currentTiddler>> field="caption"
emptyValue=<<title>>>
<<display>>
</$set>
</$set>
\end
\define my-template()
<$list filter="[all[current]tag[Content]]">| $(caption)$ </$list>
<$list filter="[all[current]tag[Content]]">
| <$list filter="[tag[Content]!has[draft.of]] -[<currentTiddler>]"><$link
to={{!!title}}>$(caption)$</$link> | </$list>
</$list>
\end
<<my-template>>
The <<caption>> macro comes from here
<https://github.com/Jermolene/TiddlyWiki5/issues/3624#issuecomment-466652926>
.
It ensures that there is still a link displayed in case a tiddler's
*caption* field is empty.
The first <$list> widget displays the non-linked *title/caption* of the
current tiddler
The third <$list> widget removes the *title* of the current tiddler from
the list generated.
Hope this works for you.
Cheers!
On Tuesday, February 26, 2019 at 8:54:31 AM UTC+7, Magnus wrote:
>
> I have a template with
>
> <$list filter="[all[current]tag[Content]]">
> | <$list filter="[tag[Content]!has[draft.of]]"><$link
> to={{!!title}}><$view field="caption"/></$link> | </$list>
> </$list>
>
> showing a nice list in the footer of tiddler with tag "Content". But I
> think it would be even nicer if the currentTiddler will not be a link, just
> view. Example, in tiddler "Story" there will be links to all other tiddler
> tagged "Content" but the link to "Story" will not be a link, just view of
> caption-field but in the same place in all tiddler. Does this make any
> sense at all?
>
> /Magnus
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0ba4a187-75c7-41dd-a7f9-5aa3bd3dbbca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.