Hello folks,

I'm trying to build a macro that calls an external link from a defined path 
(similar to  ximg <http://tobibeer.github.io/tb5/#External%20Image%20Path>but 
with a link rather than an image. 

I can get this to work:
\define sbk-hardcode-path(linktext,timestamp)
Timestamp: $timestamp$<br>
[[$linktext$|https:
//designwritestudio.github.io/resources/sbk/data/$timestamp$/index.html]]
\end

* <<sbk-hardcode-path "sbk macro with hardcoded path value" "20161006124524"
>>

which nicely provides a link to 
https://designwritestudio.github.io/resources/sbk/data/20161006124512/index.html,
 
as expected.

But, I can't get this to work:
\define sbk(linktext,timestamp)
<$set name="path" value=
"https://designwritestudio.github.io/resources/sbk/data/$timestamp$/index.html";
>
Linktext: $linktext$<br>
Timestamp: $timestamp$<br>
Path: <<path>> /><br>
Link: <a href=<<path>> target="new">$linktext$</a>
</$set>
\end

<$macrocall $name="sbk" timestamp="20161006124512" linktext="test sbk 
marcro"/>



(The desired solution, of course, is to transclude the value of path from 
another tiddler)(but one step at a time).

I generate the link in the debug "path" line, and the link is present in 
the macrocall, but requires me to right-click/open in new tab to activate. 
Is  there some special potion available that will let me transclude the 
desired path into the link structure?

Here is the live wiki: 
https://designwritestudio.github.io/experimental/scrapbook-interface/scrapbook-tiddlywiki.html


Thanks for any help!

//steve.

Thanks!

//steve.

-- 
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/767760c7-d04c-4501-992d-8b4193e8527c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to