Hi,
    I have a tiddlywiki containing some tiddlers tagged as
"Organisations" and some tagged as "Projects".  Each organisation
tiddler is tagged with the projects that that organisation
participates in.
    I have written a tiddler called "ListPartners":

<<forEachTiddler
 where
 'tiddler.tags.contains("$1") && tiddler.tags.contains
("Organisations")'
 sortBy
 'tiddler.title'
 write
 '((index == 0) ? "" : ", ") + "[[" + tiddler.title + "]]"'
>>

If I use this in one of the partners tiddlers as:

<<tiddler ListPartners with: "SomeProject">>

then I get a comma-separated list of all the project partners.  So far
so good!

  I have my own theme tiddler and in the view template I would like to
have various project-specific stuff displayed for project tiddlers.
So I wrote:

<div macro="showWhenTagged Projects">
<div><b>Start Date:</b> <span macro="view startdate"></span></div>
<div><b>End Date:</b> <span macro="view enddate"></span></div>
<div><b>Partners:</b> <span macro="tiddler ListPartners
with:'{{title}}'"></span></div>
</div>

The start and end dates of the project appear fine but I cannot work
out how to get the partner list to appear - the problem is how to pass
the title of the tiddler being viewed into the ListPartners macro?  I
have tried various refactorisations and quoting strategies but I
cannot find the right solution.

Can anyone help me?

Thank you.

Stephen Phillips.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to