display TOC + field

161 views
Skip to first unread message

unread,
Aug 3, 2021, 6:57:44 AM8/3/21
to TiddlyWiki
Hello Forum,

I use for each tiddler a field 'published' which will be filled with a custom date.

How can this field be additional shown in TOC in green color?

<$scrollable class='tc-scrollable-demo'>

<div class="tc-table-of-contents">
<<toc-selective-expandable 'Inhalt' 'sortan[]' >>
</div>

</$scrollable>


Thanks
Stefan

TW Tones

unread,
Aug 3, 2021, 8:21:05 AM8/3/21
to TiddlyWiki
You will need to look inside the toc macros or the documentation to see if there are parameters you can use. If you use the internal and external nave the selected tiddler is displayed in a panel to the right, you could customise the template in use to display your fields.

Otherwise you could build your own TOC macro(s) whose output includes the fields formatted as desired.

Regards
Tones

unread,
Aug 3, 2021, 9:38:05 AM8/3/21
to TiddlyWiki
Hello Tones,

thanks for feedback.
I adress a different issue:

Creating a new Tiddler with a custom field 'published':
published.png

--> should display in TOC like

TOC.png

Thanks
Stefan

unread,
Aug 7, 2021, 12:51:12 PM8/7/21
to TiddlyWiki
Any ideas?
Stefan

strikke...@gmail.com

unread,
Aug 7, 2021, 2:13:31 PM8/7/21
to TiddlyWiki
Try this. Import the attached file to your tiddlywiki. Hope it works for you.

Birthe
Alttoc.json
Message has been deleted

unread,
Aug 7, 2021, 5:38:01 PM8/7/21
to TiddlyWiki
Thanks Birthe - works perfect!
Reply all
Reply to author
Forward
0 new messages