Edit what is displayed in a transclude

56 views
Skip to first unread message

Stephen Rider

unread,
Jan 25, 2018, 12:55:03 PM1/25/18
to TiddlyWiki
I use Tiddly wiki as a database of information on a web site I manage for a company.

I have a "Changelog" index tiddler, which is basically just a transcluded list of all tiddlers that start with $:/_changelog/ . This is what I have:

{{{[prefix[$:/_changelog/]!sort[title]]}}}


I use the "$:/" so that the individual changelog entries don't show up on Tiddler lists, especially "Orphans".

An example of a title is this:
$:/_changelog/2017-04-05 Upgraded system to PHP 7

(Note the !sort[title] that sorts by date from newest to oldest.)

When displayed on the actual Changelog index tiddler, I want to remove the "$:/_changelog/" prefix. That is, LINK to "$:/_changelog/2017-04-05 Upgraded system to PHP 7" but DISPLAY the link as "2017-04-05 Upgraded system to PHP 7". Everything I've tried removes the prefix from what is actually linked -- resulting in a list of "Missing Tiddler" links.

(I know how to do it for a specified link, but not a transclude list.)

Is there any way to do this?

Mark S.

unread,
Jan 25, 2018, 1:58:52 PM1/25/18
to TiddlyWiki
I think you'll need to get away from the simple transclude. This seems to work:

<$list filter="[prefix[$:/_changelog]]" >
<$list filter="[all[current]removeprefix[$:/_changelog/]]" variable=entry>
<$link><
<entry>></$link><br/>
</$list>
</$list>

-- Mark

Stephen Rider

unread,
Jan 25, 2018, 3:48:24 PM1/25/18
to TiddlyWiki
Worked perfectly.  Thanks.  (I re-added the sort to the outer <$list> tag.)
Reply all
Reply to author
Forward
0 new messages