I don't understand what you want do do. The macro seems to work fine. You 
say you're trying to transclude a value from somewhere, but I don't see 
anywhere that you attempt transclusion. 

If you're trying to pull in the *contents* of the external web site ... I'm 
not sure if that will work. You might try setting up an iframe instead of 
an anchor tag sourced from the external site. This iframe seems to work 
though it needs to be tweaked for usability:

Frame:  <iframe src=<<path>> ></iframe> 

Good luck!
Mark

On Tuesday, November 15, 2016 at 1:32:23 PM UTC-8, stevesuny wrote:
>
> 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/5e3204ee-1874-43de-95e7-ef0e3d89918d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to