[TW5] Highlight links in TOC in a different color

84 views
Skip to first unread message

The Bo

unread,
Aug 3, 2016, 9:48:48 AM8/3/16
to TiddlyWiki
Hey,

I'm using TW5 for sorting notes in a large table of content including ~600 tiddlers. For a better overview I would like to highlight every toc link which isn't containing the tag "#" in a different color.
I allready tried some css but couldn't found a way.
Does anybody have an idea?

Regards
The Bo

The Bo

unread,
Aug 5, 2016, 3:39:26 AM8/5/16
to TiddlyWiki
Right now I use a workaround where I set a caption field with a css style I can change in the stylesheet.

<$button>Drücken
<$list filter='[!tag[#]!is[system]!has[source]!untagged[]]'>
<$fieldmangler tiddler=<
<currentTiddler>>>
<$action-setfield $field='caption' $value='@@.beitrag {{!!title}}@@'/>
</$fieldmangler>
</$list>
</$button>



Jed Carty

unread,
Aug 5, 2016, 4:53:08 AM8/5/16
to TiddlyWiki
I have been thinking about this and I haven't come up with anything. I have a widget that I am working on as an alternative to the toc macros for twederation that may let you do things like this in the future, but until then I think you have come up with the only working solution
Reply all
Reply to author
Forward
0 new messages