trying to remove bullet-points of multi-level unordered-list, as well as trying to get a pill to display something different from the tag it links to (TW5)

65 views
Skip to first unread message

Elijah

unread,
Jan 4, 2019, 1:23:44 PM1/4/19
to TiddlyWiki
Wasn't sure if I should post this here, or in TiddlyWikiDev..

I'm trying to figure out how to remove the bullet points for all of the levels in a multi-level unordered-list. I've been trying to use @@list-style: none;, but it is only removing first-level bullet points. I know I could do this by using pure-html/css, but am curious if there is a way to do it with the @@ function.

Another thing I'm trying to do is make a pill in the contents of a tiddler display something different from the tag it actually links to. I'm using {{ITEM||$:/core/ui/TagTemplate}}, where ITEM is a tag, but I want to display something else, like you can with the WikiText links: [[displayed|actual]]. I tried {{displayed|actual||$:/core/ui/TagTemplate}}, but that didn't work.

Any feedback on either would be appreciated.

Ton Gerner

unread,
Jan 4, 2019, 2:33:54 PM1/4/19
to TiddlyWiki
Hi Elijah,

The easiest way for your first question is: use : instead of a bullet:

: one
: two
:: two-one


Cheers,

Ton

Elijah

unread,
Jan 4, 2019, 3:37:18 PM1/4/19
to tiddl...@googlegroups.com
Thanks a ton Ton. :p

That + setting the margin-top, and margin-bottom of the dl element to zero got me exactly what I want.

As for the other thing I'm trying to do; to get a tag-pill to display something instead of the actual title of the tiddler (such as the contents of the caption field), I still have yet figured it out. I see that I can do {{ITEM!!caption}}, but I can't figure out how to put that into a tag-pill, while retaining the original links.. Any ideas guys?

Elijah

unread,
Jan 4, 2019, 11:12:26 PM1/4/19
to TiddlyWiki
I figured it out. I created a copy of TagTemplate, replaced tag=<<currentTiddler>> with tag={{!!caption}}, and referred to this template as needed. Marking as solved.
Reply all
Reply to author
Forward
0 new messages