Dangit. you guys had told me that once before. Sorry. It just seems like
it should work easier than that.
I guess it is because the html for the < a > tag is being parsed by TW and
not just rendered as static maybe.
Thank you!
On Monday, June 29, 2020 at 9:15:52 AM UTC-4, Mark S. wrote:
>
> What you're trying to do is to concatenate the contents of a field with a
> string. There are a couple different approaches, often using helper macros.
> These days, I like to use the {{{ }}} wikitext and a filter that uses
> "addprefix" or "addsuffix". Like:
>
> <a href={{{[[
> https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix{!!tracking_number}]}}}>USPS
>
> Tracking</a>
>
>
> On Monday, June 29, 2020 at 5:50:39 AM UTC-7, David wrote:
>>
>> I have this code that tries to put a field value into a link, which seems
>> logical, but doesn't work...
>>
>> <a href="
>> https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1={{!!tracking_number}}
>> ">USPS Tracking</a>
>>
>> I also tried the transclude code...
>>
>> <a
>> href="https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=<$transclude
>>
>> field="tracking_number" />">USPS Tracking</a>
>>
>> I had originally tried this code, but it seems that external links have
>> to be put into the html anchor tag.
>>
>> [[USPS Tracking|https://
>> tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=<$transclude
>> tiddler=<<item>> field="tracking_number" />]]
>>
>> Thank you all!
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7dc592e9-88d8-4b8f-9d6a-8a59f5cd9045o%40googlegroups.com.