Thanks Mark. I hadn't realized I needed to call "path" in the \define sbk(
linktext,timestamp,path) line; that makes perfect sense.
On Wednesday, November 16, 2016 at 1:01:32 PM UTC-5, Mark S. wrote:
>
> This version and invocation assumes you always want to use a tiddler to
> define the base path:
>
> \define fullpath() $(base)$$(timestamp)$/index.html
>
> \define sbk(linktext,timestamp,path)
> <$set name="base" value={{mypath}}>
> <$set name=timestamp value="""$timestamp$""">
> <$set name="path" value=<<fullpath>>>
> <a href=<<path>> target="_blank">$linktext$</a>
> </$set>
> </$set>
> </$set>
> \end
>
> <$macrocall $name="sbk" timestamp="20161006124512" linktext="test sbk
> marcro"
> />
>
>
>
>
> On Wednesday, November 16, 2016 at 9:20:11 AM UTC-8, stevesuny wrote:
>>
>> I'm back, same macro, different question.
>>
>> Here is my code, that works:
>>
>> \define sbk(linktext,timestamp)
>> <$set name="path" value="
>> https://designwritestudio.github.io/resources/sbk/data/$timestamp$/index.html
>> ">
>> <a href=<<path>> target="_blank">$linktext$</a>
>> </$set>
>> \end
>>
>> How do I replace the portion of <<path>> that contains "
>> https://designwritestudio.github.io/resources/sbk/data/" with a
>> transcluded tiddler whose text field contains that value?
>>
>> 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/a25d1325-0861-4108-8d4b-b0464d39f6f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.