thanks BJ
I've just discovered the widget *$wikify*. With it the working code looks
li this
<$wikify name="good_atts" test="1,2,3,{{blabla!!blabla}},5,6">
<$myWidget att=<< good_atts>>/>
</$wikify>
On Friday, 19 July 2019 16:51:04 UTC+1, BJ wrote:
>
> this is the normal behavior of macros - they act differently when used as
> parameter values to widget then when used alone.
>
> When used alone the return values are 'wikified' but not when used as
> parameter values
>
> hope this helps
>
> BJ
>
> On Thursday, July 18, 2019 at 10:20:35 PM UTC+2, Sebastian Ovide wrote:
>>
>> Hello All
>>
>> I'm building by first widget. It accepts an attribute and it works. Now
>> I'm trying to create that attribute from a macro but the value from the
>> macro, even if displayed correctly, it is not converted into text inside
>> the attribute.
>>
>> /define macro_good()
>> 1,2,3,4,5,6
>> /end
>> /define macro_bad()
>> 1,2,3,{{blabla!!blabla}},5,6
>> /end
>>
>> <<macro_good>>
>> <<macro_bad>>
>>
>> <$myWidget att=<<macro_good>>>
>> <$myWidget att=<<macro_bad>>>
>>
>>
>>
>> <<macro_good>> and <<macro_bad>> display exactly the same result on the
>> tiddler but the attribute that <$myWidget att=<<macro_bad>>> gets is the
>> string "1,2,3,{{blabla!!blabla}},5,6" instead of "1,2,3,4,5,6"
>>
>> any ideas ?
>>
>> thanks
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/3719aee6-40ad-4a98-8994-769a0b4123d1%40googlegroups.com.