Formatting DataTiddler Lists

77 views
Skip to first unread message

MagoArcade

unread,
Aug 18, 2019, 12:57:15 PM8/18/19
to TiddlyWiki
How to? I want results displayed inline with some custom text around the list results. Present code:

<$list filter="[[$:/tiddlypom/DTNodeTypes]indexes[]sort[title]]" variable="key">

</$list>


Example of working code for normal tiddlers (wanting in much the same format):

<$list filter=<<BoardSelect>> >
[<$view field=shorttext/>]&nbsp;
</$list>

Thanks!

TonyM

unread,
Aug 19, 2019, 12:21:32 AM8/19/19
to TiddlyWiki
MagoArcade

Could you please ask for what you want, and the background? rather than making us try and guess from the above?

Here is a short brain dump that may hit the unknown target. Are the index values valid tiddler titles?
<$list filter="[[$:/tiddlypom/DTNodeTypes]indexes[]sort[title]]" variable="key">
  <<key><$text text=<<key>>/> <$link to=<<key>> ><$text text=<<key>>/></$link> {{!!shorttext}}
</$list>

Regards
Tony

MagoArcade

unread,
Aug 19, 2019, 1:56:08 PM8/19/19
to TiddlyWiki
Thank Tony - you guessed right! I should have been more specific over the formatting requirments. I just changed my code to:

<$list filter="[[$:/tiddlypom/DTNodeTypes]indexes[]sort[title]]" variable="key">
  <
<key>
>
</$list>



and it gave me what I needed - thanks.

Reply all
Reply to author
Forward
0 new messages