Am Samstag, 5. Dezember 2015 00:47:03 UTC+1 schrieb BJ:
>
> HI NT, try this:
>
>  <$macrocall $name="pathtype" filename="<<currentTiddler>>"/>
>
> all the best
> BJ
>

Hey BJ, thanks for suggestions!

OK, this works partly, but I spotted a strange behavior.
If I just return the filename inside the js function your solution works 
fine and the currentTiddler variable is resolved to it's value.

But if I want to return something from the js function like 

"[img[" + path + filename + ".jpg" + "]]" 
(the variable concatenated inside a string)

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.
Can you tell me what or how to do it? 

-- 
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/f2888813-9b87-474f-9857-e1b33775bb25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to