Hi Stephan

I think this is the simplest fix:

\define timeline-title()

<$view field="title"/>  <$set name="transclusion" 
value=<<currentTiddler>>><$list 
filter="[all[current]tags[]]">{{||$:/core/ui/TagTemplate}}</$list></$set>
\end

<$macrocall $name="timeline" format="YYYY-0MM-0DD" 
subfilter="tag[TableOfContents]"/>

The tab template uses the qualify macro to generate a state tiddler title for 
each dropdown. The qualify macro combines all the values of the variable 
“transclusion” found in its chain of ancestors. This uniquely identifies the 
location of the qualify macro within the widget tree, ensuring that the 
generated state title is unique.

The “transclusion” variable is set by the transclude widget, which is generally 
enough to ensure uniqueness. In this case we introduce another assignment to 
the “transclusion” variable to ensure that the chain is uniquified by the title 
of the tiddler in the timeline.

Best wishes

Jeremy.


> On 22 Mar 2018, at 11:08, Stephan Hradek <[email protected]> wrote:
> 
> Hi!
> 
> I'm using the timeline macro, overwriting the timeline-title macro to also 
> display (some of) the tags of each tiddler.
> 
> Now when I click on one of the tags, the dropdown of each of these tags 
> openes.
> 
> Is there a way to avoid this?
> 
> Example to try out on tiddlywiki.com
> 
> \define timeline-title()
> 
> <$view field="title"/> <$list 
> filter="[all[current]tags[]]">{{||$:/core/ui/TagTemplate}}</$list>
> \end
> 
> <$macrocall $name="timeline" format="YYYY-0MM-0DD" 
> subfilter="tag[TableOfContents]"/>
> 
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/765d95c7-f287-48e1-829c-0594c19d732e%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/765d95c7-f287-48e1-829c-0594c19d732e%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/3D7085EC-449D-45DB-84EF-9F48B3989491%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to