Hi Alex
> I have wikify widget (kind of copied from Thomas):
>
> <$wikify name="wikifyTest" text="<<currentTiddler>>/data">
>
> snip
> </$wikify>
In fact, you don’t need the wikify widget here. It’s purpose is to apply
wikification to the text that is passed to it, and then return the text content
(ie ignoring any html tags).
So, if you pass “//italics//“ then you’ll get back the string “italics”. That
means that your code will not produce the expected results whenever the tiddler
title contains anything that could be wikified.
The classic solution here is to use a macro: their purpose is to permit this
kind of textual subsitution.
However, there is now another way that can be convenient:
<$set name="wikifyTest" value={{{ [<currentTiddler>addsuffix[/data]] }}}>
<$edit-text
tag="input"
type="range"
tiddler=<<wikifyTest>>
index="percentage"
placeholder="66" size="5"/>
<$transclude tiddler=<<wikifyTest>> index="percentage"/><$link
to=<<wikifyTest>>>% engaged</$link>
</$wikify>
Here, we’re using the plain old set widget with the new triple brace syntax for
the “value” attribute. It parses the attribute as a filter, and then returns
the first item as the resulting value for the attribute.
> <<tree prefix:"<<currentTiddler>>”>>
The simple double angle bracket syntax for invoking macros only allows plain
text values to be specified for parameters.
To use transcluded attribute values you need to move up to using the underlying
macrocall widget directly:
<$macrocall $name="tree" prefix=<<currentTiddler>>/>
Best wishes
Jeremy.
>
> What's the best way of getting currentTiddler into the treee macro?
>
> best wishes
>
> Alex
>
> --
> 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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/CALc1hYcwUBm2YvE3f5LVTNJqi8_dnQZFrz%2BqUBaP0V%3DGoSoB-g%40mail.gmail.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/CALc1hYcwUBm2YvE3f5LVTNJqi8_dnQZFrz%2BqUBaP0V%3DGoSoB-g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
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/F00B3254-3E7A-4A66-B126-ED84FD22F2A7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.