I'm dealing with tracking numbers lately. I have several tiddlers that represent incoming shipments. they have "tracking_number" field in each of them.
There's a site called 17track that is great for tracking multiple shipments at once. Its urls look like this:
So I want to create a Link in my "master" tiddler (that shows all the incoming shipments) that has a concatenated comma list of all the tracking numbers for the shipments.
This code will give me a comma-list that is correct, but it is just rendered into the view and not available as a variable. But maybe it can be put into a link somehow.
<$list filter="[tag[IncomingItem]!has[date_received]has[tracking_number]]">{{!!tracking_number}},</$list>
This code almost gets me there, but it renders the list of trackin numbers as space-delimited instead of comma. I wasn't able to find a way to find/replace.
<$set name="myVariable" filter="[tag[IncomingItem]!has[date_received]has[tracking_number]get[tracking_number]]">
<a href={{{[<myVariable>addprefix[https://t.17track.net/en#nums=]]}}} >Track All</a>
</$set>
You guys have been so much help today!
Maybe I'm trying to make it do something TW is not supposed to be able to do easily. And I'm sure open to learning some other technique to do the above if it is better code for TW.
Thank you!