strange behaviour in $list

47 views
Skip to first unread message

Joe Armstrong

unread,
Jan 20, 2019, 7:56:50 AM1/20/19
to TiddlyWiki
$list seems to create an unclickable link (I think this is a bug)

I have a tiddler called  "What is the TiddlyWiki?" with tag book

<<list-links "[tag[book]]">>

finds this and creates a correct link to the tiddler

But

<ul>
<$list filter="[tag[book]]">
<li>
<$link>
<<currentTiddler>>
</$link>
</li>
</$list>
</ul>

Makes an incorrect link - the tiddler is found but displayed in a cursive font and
does not open the correct tiddler when clicked.

Seems like titles with camel case words get a bad link generated inside $link

Cheers

/Joe

Mat

unread,
Jan 20, 2019, 8:31:08 AM1/20/19
to TiddlyWiki
I think this is the same case as raised in #1880 i.e nested links.

<:-)

Jeremy Ruston

unread,
Jan 20, 2019, 9:32:48 AM1/20/19
to tiddl...@googlegroups.com
Hi Joe

<ul>
<$list filter="[tag[book]]">
<li>
<$link>
<<currentTiddler>>
</$link>
</li>
</$list>
</ul>

The problem here is that the double angle brackets cause the text of the currentTiddler variable to be wikified. That will cause problems for tiddler titles that incorporate wikitext (e.g. CamelCase like "My InterestingTiddler") because that wikitext will be rendered within the link.

It's better to use <$text text=<<currentTiddler>>/> to render the variable as plain text without wikification.

Best wishes

Jeremy.



Makes an incorrect link - the tiddler is found but displayed in a cursive font and
does not open the correct tiddler when clicked.

Seems like titles with camel case words get a bad link generated inside $link

Cheers

/Joe

--
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/1e51b4a8-5d60-4674-8886-e968cad4ba67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Armstrong

unread,
Jan 20, 2019, 9:58:43 AM1/20/19
to tiddl...@googlegroups.com
You mean like this :-)

<ul>
<$list filter="[tag[chandler]tag[now]]">
<li>
<$link>
<$text text=<<currentTiddler>>/>
</$link>
</li>
</$list>
</ul>

This now works - thanks Jeremy

/Joe

You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_i7lapstAj8/unsubscribe.
To unsubscribe from this group and all its topics, 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.
Reply all
Reply to author
Forward
0 new messages