Simplest way to use field value as global variable?

84 views
Skip to first unread message

Chuck Middaugh

unread,
Apr 23, 2014, 11:18:11 AM4/23/14
to tiddl...@googlegroups.com
Hi all,

I am asking for an example of using a field value from one tiddler as a global variable in any other tiddler.

I've seen a few examples that come close to what I need, but I am unable to display the variable value in every place that I wish (in any or all other tiddlers).

If the information is available, then please point me in the right direction.

Thank you

Chuck Middaugh

unread,
Apr 23, 2014, 11:50:41 AM4/23/14
to tiddl...@googlegroups.com
If ailed to mention that I am using the latest version of TW5

Jeremy Ruston

unread,
Apr 24, 2014, 5:44:42 AM4/24/14
to TiddlyWiki
Hi Chuck


I am asking for an example of using a field value from one tiddler as a global variable in any other tiddler.

If you want to include the value of a field of another tiddler within wiki text you can use transclusion:

{{my tiddler title!!my-field-name}}

You can use the same syntax to set the value of an attribute of a widget or HTML element. For example:

<$link to={{my tiddler title!!my-field-name}}>My link</$link>

I've seen a few examples that come close to what I need, but I am unable to display the variable value in every place that I wish (in any or all other tiddlers).

Can you outline what you are trying to accomplish in a little more detail?

Best wishes

Jeremy
 

If the information is available, then please point me in the right direction.

Thank you

--
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.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Chuck Middaugh

unread,
Apr 24, 2014, 8:39:16 AM4/24/14
to tiddl...@googlegroups.com

Thank you. Your response is not what I've tried before. Let me give that a try and if it doesn't do what I need (which I suspect it will do), then I'll try to be more specific. Again, thank you.

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/IexipKnEKpM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages