On Saturday, December 5, 2015 at 3:44:25 AM UTC-8, NT wrote:
>
> Am Samstag, 5. Dezember 2015 00:47:03 UTC+1 schrieb BJ:
>>
>>  <$macrocall $name="pathtype" filename="<<currentTiddler>>"/>
>>
>> the result is something like 
> [img[./path/<<currentTiddler>>.jpg]]
> so again the variable is not resolved.
> Seems I have to change something inside the js function or the way I 
> return it.
>

The syntax for widget parameters support the following general use-cases:
   foo="literal string"
   foo=<<someVariable>>
   foo={{TiddlerName!!fieldname}}
   foo={{DataTiddlerName##index}}

In your example, you have quotes around "<<currentTiddler>>", which makes 
it a literal text string, rather than getting it's current value.  Remove 
the quotes around "<<currentTiddler>>" and it should work.

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7bd3a8ba-96e6-4ae6-81e4-15ae5bae4f20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to