How to induce a variable into a Macro?

52 views
Skip to first unread message

Jan

unread,
Jul 29, 2016, 4:57:14 AM7/29/16
to TiddlyWiki
Hello,
I wanted to write a Macro which compose the link to a presentation based on fields and a tiddler. This works fine for the entire path already, but i do not manage to get the name ppp of the presentation into the macro. How do I do this?

\define presentationlink()
[[$(pname)$|$(videosource)$$(seminar)$/$(thema)$/P/$(pname)$]]
\end
\define prsnt(ppp)
<$vars videosource={{Videosource}} seminar={{!!seminar}} thema={{!!thema}} pname=$(ppp)$>
<<presentationlink>>   
</$vars>
\end        
<<prsnt ppp="MiseEnScene.pps">>       

Thanks for Help
Jan

Jed Carty

unread,
Jul 29, 2016, 5:56:29 AM7/29/16
to TiddlyWiki
You need to put $ppp$ instead of $(ppp)$ since it is the input to a macro instead of a variable defined outside the macro.
Reply all
Reply to author
Forward
0 new messages