Reveal State based off of Tiddler With Spaces in Title ??

71 views
Skip to first unread message

David

unread,
Jul 13, 2020, 11:44:20 AM7/13/20
to TiddlyWiki
I am accessing the field from a separate tiddler as the state of a reveal widget.

If the Tiddler title has no spaces, this works....

<$list filter="[tag[Task]]">
<$reveal type="match" state="TODO!!edit_priorities" text="1">
<$edit-text field="priority" size="3" />
</$reveal>
</$list>

But the tiddler in question has spaces and a semi-colon in the title.

I've tried many combinations of square brackets and curly braces to try to find the right combo, including examples on the TextReference TW page.

The tiddler I want to point to is "ToDo: Get Some Day"

Thank you!

clutterstack

unread,
Jul 13, 2020, 12:01:34 PM7/13/20
to TiddlyWiki
Hello David,

I think if you use the stateTitle and stateField parameters rather than the TextReference, it should work. https://tiddlywiki.com/#RevealWidget

Cheers,
Chris

Mark S.

unread,
Jul 13, 2020, 12:49:39 PM7/13/20
to TiddlyWiki
Are you talking about the tiddler that is a task, or the tiddler that holds the priority?

Because this seems to work fine out of the box:

<$list filter="[tag[Task]]">
<$reveal type="match" state="ToDo: Get Some Day!!edit_priorities" text="1">
<<currentTiddler>>: <$edit-text field="priority" size="3" />
</$reveal>
</$list>



David

unread,
Jul 13, 2020, 2:02:28 PM7/13/20
to TiddlyWiki
Man, that is the first thing I tried. 

Maybe I spelled it wrong by a letter or something. 

Yep.  Sure enough, it works.  Thanks!

David

unread,
Jul 13, 2020, 2:03:23 PM7/13/20
to TiddlyWiki
Thanks Chris.  Thanks to you, I know what those two fields mean now.  For somereason it just went over my head the first few times I read it.
Reply all
Reply to author
Forward
0 new messages