You need the wikify widget. It's express purpose is to parse wiki text and
store it's output for use elsewhere inside it. So in this example, you
would want the following
<$wikify name="caption" text="{{myConfig##Tag}}-Course348">
<$button>
<$action-sendmessage $message="tm-new-tiddler"
title={{myConfig##Name}} tags={{myConfig##Tag}} caption=<<caption>>
page={{myConfig##Page}} text=<<content "SlideContents">>/>
New Slide
</$button>
</$wikify>
On Friday, May 25, 2018 at 1:41:23 PM UTC-4, Mohammad wrote:
>
> Is it possible to retrieve and concatenate values from a Data Tiddler
> (Dictionary)?
>
> To explain in a bit more details consider the following code:
>
>
>
> - Data Tiddler (*myConfig*) contains
>
> Name: Lecture01
> Tag: Lec01
> Page: 001
> Group: Course 348
>
>
>
>
> - A button to create a new tiddler using data from the above data
> tiddler
>
>
> <$button>
> <$action-sendmessage $message="tm-new-tiddler"
> title={{myConfig##Title}} tags={{myConfig##Tag}}
> caption="{{myConfig##Tag}}-Course348"
> page={{myConfig##Page}} text=<<content "SlideContents">>/>
> New Slide
> </$button>
>
> Note: content is a macro creates some texts to be inserted as a new
> tiddler text.
>
> This code creates a caption filed for the new tiddler, its value is
>
> caption="{{myConfig##Tag}}-Course348"
>
>
> It may be the result of concatenation of other values like
>
> caption="{{myConfig##Tag}}-{{myConfig##Group}}"
>
>
> Is there any short solution to this?
>
>
> Cheers
> Mohammad
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/65405519-309b-4f48-b4c7-df96388d120a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.