Hello all,
I have a knowledge-base I'm putting together at work (TW5). What I'm trying to accomplish is a simple mailto: link at the bottom of these tiddlers that use the appropriate contact, based on the custom field "topic" as stored in a dictionary tiddler as a lookup.
For instance...
Tiddler name = "Performing Inventory Audit", topic (custom field) = MaterialCost
The pieces seem to all work, I just can't get them all together...
* {{!!topic} returns "MaterialCost"
I can't seem to get much further than that though...
1. I can't figure out how to get the mailto: to work with anything other than hard-coded string
2. I can't figure out how to do the equivalent of {{ Owners##{{!!topic}} }}
For #1 I thought I could do something like:
[[Send email to contact|mailto:{{Owners##MaterialCost}}]]
...doesn'twork
For #2 I thought for the second piece I could do something like:
\define mylink() {{Owners##$(topic)$}}
<$set name=topic value={{!!topic}}>
...but that doesn't work.
Any ideas? I'm open to restructuring. The benefit of storing the contacts in a Dictionary tiddler is that it'd be only one place to change contact email when people cycled out of the role. Many tiddlers will have the same "topic"