Eric, Tony, and Mark,
Thanks so much for all your help. I was using the << item >> var because
it saw it somewhere and it worked for what I was using that was a bit
different. I have changed that code to not use the variable attribute for
that listWidget and re-coded a few things and it is working well, and I
like the dynamics of it. Thanks so much for that !!
And thanks so much for the other use case where I can bring in the
addsuffix and prefix type operators, because I need that too!
On Monday, June 29, 2020 at 11:10:56 AM UTC-4, Eric Shulman wrote:
>
> On Monday, June 29, 2020 at 7:45:15 AM UTC-7, Eric Shulman wrote:
>>
>> Give this a try:
>> <a href={{{[<item>get[tracking_number]addprefix[
>> https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]}}
>> <https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>}>USPS
>>
>> Tracking</a>
>>
>> Start with the tiddler title stored in <item>
>> Then get the tracking_number field value from that tiddler
>> Then add the URL stuff onto the *front* of the retrieved value.
>>
>
> Note: if your <$list> widget just used the default "currentTiddler"
> variable, then you could simplify the above to:
> <a href={{{ [{!!tracking_number}addprefix[https://tools.usps.com/go/
> TrackConfirmAction_input?qtc_tLabels1=] }}
> <https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>
> }>USPS Tracking</a>
>
> or, if you prefer:
> <a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?
> qtc_tLabels1=]addsuffix{!!tracking_number}] }}
> <https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>
> }>USPS Tracking</a>
>
> and, if you do want to use the "item" variable, you could still write one
> of the above... just wrap the whole thing inside a <$tiddler> widget, like
> this:
> <$tiddler tiddler=<item>>
> <a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?
> qtc_tLabels1=]addsuffix{!!tracking_number}] }}}>USPS Tracking</a>
> </$tiddler>
>
> -e
>
--
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/f9addd00-a7df-422c-bfe0-209dc1c053d8o%40googlegroups.com.