Hi

I have a similar problem. I am trying to achieve something like this 
(although the code doesn't work):

/define getList(tag) <$list filter="[tag[$tag$]]"/>

<$button set="!!myfield" setTo=<<getList {{!!myotherfield}}>> />

How do I force the evaluation of the macro before the set operation? (I 
keep getting "{{!!myotherfield}}" as output.)

regards

On Thursday, May 15, 2014 9:44:14 AM UTC+2, Jeremy Ruston wrote:
>
> Hi John
>
> The reason that macros are not wikified when used as an element/widget 
> attribute is primarily performance: parsing and rendering the macro text is 
> a pretty expensive operation. Very often the variable substitution 
> performed by macros is sufficient, and it's much, much faster.
>
> The way to think about what's going on is that:
>
> * invoking a macro always performs the parameter and variable substitution 
> to generate the output text
> * whether it is wikified depends on the context: ordinary body text is 
> wikified, but attribute values are not. That's consistent; an attribute 
> like attr="my [[wiki|Wiki]]" is not wikified either
>
> The trick that Stephan suggested is widely used in the core and helps with 
> a lot of cases. But I'm conscious that we're going to need further wikitext 
> syntax to cover all the bases.
>
> Best wishes
>
> Jeremy
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to