Displaying certain tiddlers differently

119 views
Skip to first unread message

Ed Heil

unread,
May 30, 2021, 4:50:21 PM5/30/21
to TiddlyWiki
Hi!

I'm using TW to make a character sheet for a role-playing game.  Right now a tiddler for a character is associated with a data tiddler.  The character tiddler has a view template which displays all the stuff in the data tiddler in a readable & usable manner.

I'm thinking it would be nice to have the character sheet *actually be* the data tiddler.

If I do this, I'm going to want to modify the display of this tiddler, so that when you look at it,  you can't see the underlying data, you can just see the template with the UI for displaying it and interacting with it.

I've added view templates to classes of tiddlers before, e.g. by adding a new tiddler with the special view template tag so it shows up for tiddlers with a certain tag.  But I've never tried to *replace* the default display.

I'm wondering if I need to look at replacing (shadowing) a system tiddler or what.


Saq Imtiaz

unread,
May 30, 2021, 5:04:58 PM5/30/21
to TiddlyWiki
The quick and easy way is to add a field "hide-body" with a value of "yes" to your data tiddlers. This will hide the default display of the tiddler text. Then have a custom view template based on a tag or field that displays things how you want.

Edward Heil

unread,
May 30, 2021, 5:52:58 PM5/30/21
to tiddl...@googlegroups.com
Oh, that's exactly what I needed -- thanks!

--
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/E1nvd5jBacU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/66d9ceae-d07b-464f-88dc-ac95007b2a74n%40googlegroups.com.

Mohammad Rahmani

unread,
May 31, 2021, 12:53:45 AM5/31/21
to tiddl...@googlegroups.com
On Mon, May 31, 2021 at 1:35 AM Saq Imtiaz <saq.i...@gmail.com> wrote:
The quick and easy way is to add a field "hide-body" with a value of "yes" to your data tiddlers. This will hide the default display of the tiddler text. Then have a custom view template based on a tag or field that displays things how you want.


What a useful point! added to TW-Scripts!
I had got used to tag tiddler and then hide the body using conditional css! ;-)

 

On Sunday, May 30, 2021 at 10:50:21 PM UTC+2 Ed Heil wrote:
Hi!

I'm using TW to make a character sheet for a role-playing game.  Right now a tiddler for a character is associated with a data tiddler.  The character tiddler has a view template which displays all the stuff in the data tiddler in a readable & usable manner.

I'm thinking it would be nice to have the character sheet *actually be* the data tiddler.

If I do this, I'm going to want to modify the display of this tiddler, so that when you look at it,  you can't see the underlying data, you can just see the template with the UI for displaying it and interacting with it.

I've added view templates to classes of tiddlers before, e.g. by adding a new tiddler with the special view template tag so it shows up for tiddlers with a certain tag.  But I've never tried to *replace* the default display.

I'm wondering if I need to look at replacing (shadowing) a system tiddler or what.


--
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.

msameen99

unread,
May 31, 2021, 3:25:15 AM5/31/21
to tiddl...@googlegroups.com
This is new to me, is there a list for the special/functional fields like "hide-body"? 

Saq Imtiaz

unread,
May 31, 2021, 3:29:13 AM5/31/21
to TiddlyWiki

msameen99

unread,
Jun 1, 2021, 1:32:14 AM6/1/21
to tiddl...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages