Is there a way to not popup all tag dropdowns?

66 views
Skip to first unread message

Stephan Hradek

unread,
Mar 22, 2018, 7:08:26 AM3/22/18
to TiddlyWiki
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]"/>


Jeremy Ruston

unread,
Mar 22, 2018, 8:09:06 AM3/22/18
to tiddl...@googlegroups.com
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.


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

Stephan Hradek

unread,
Mar 22, 2018, 8:45:53 AM3/22/18
to TiddlyWiki


Am Donnerstag, 22. März 2018 13:09:06 UTC+1 schrieb Jeremy Ruston:
Hi Stephan

I think this is the simplest fix:

COOL

I have no clue, why it works, but it does. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages