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
Dictionary tiddler name = Owners, first value = MaterialCost:[email protected]

The pieces seem to all work, I just can't get them all together...
* [[Send email to contact|mailto:[email protected]]] works
* {{!!topic} returns "MaterialCost"
* {{Owners##MaterialCost}} returns "[email protected]"

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}}>

<<mylink>>

</$set>

...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"

-- 
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/c0392448-92f0-4738-89ce-ddd6c5c6cda0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to