Ok, for now I have gone ahead using both...
1. a tag for the language to show a tag button with the language at the
tiddler, e.g. *German*
2. a *lang* field which for German is defined as *de-DE*
I thus modified *$:/core/ui/ListItemTemplate* to...
<div class="tc-menu-list-item">
<$link to={{!!title}}>
<$list filter="[all[current]lang[de-DE]]">
<$set name=lang value={{!!lang}}>
<span class="tc-tag-label tc-list-icon"><<flag>></span>
</$set>
</$list>
<$view field="title"/>
</$link>
</div>
...having imported the flag from the language plugin and then making use of
this global macro...
\define flag()
{{$:/languages/$(lang)$/icon}}
\end
Overwriting this global macro also shows the flag for timeline items...
\define timeline-title()
{{||$:/core/ui/ListItemTemplate}}
\end
I also modified *$:/core/ui/SideBar/Open* accordingly to show the flag for
the list of open tiddlers.
Here's the css to make the flag be a small icon...
.tc-list-icon {
background:none !important;
padding:0 !important;
margin:0 !important;
}
You can see that in action here...
http://ubi.tiddlyspot.com
...which is a little notebook I started today on the topic of the *U*niversal
*B*asic *I*ncome.
Best wishes, Tobias.
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.