Hi!
I'm using Eric's TaggedTemplateTweak to display selected tasks for a
project. In projectViewTemplate I have the following code:
<span macro='showWhenTagged TaskName1'>
<span macro='formTiddler formProjectTask_TaskName1'></span><br/><br/>
</span>
<span macro='showWhenTagged TaskName2'>
<span macro='formTiddler formProjectTask_TaskName2'></span><br/><br/>
</span>
<span macro='showWhenTagged TaskName3'>
<span macro='formTiddler formProjectTask_TaskName3'></span><br/><br/>
</span>
and so on...
The problem is, if I need to add a new task, I have to manually edit
the projectViewTemplate. I found out that I can include another
template like this: <span macro="showWhenTagged
project">[[projectViewTemplateContent]]</span>
This works when the included template contains static content, like
the above code. However, if I put a fET command in the included
template, like:
<<forEachTiddler where 'tiddler.tags.contains("Task")' sortBy
'(store.getValue(tiddler,"sort.task.and.not.archived"))' ascending
write '"<span macro=\'showWhenTagged "+tiddler.title+"\'>\n<span macro=
\'formTiddler formProjectTask_"+tiddler.title+"\'></span><br/><br/>\n</
span>\n"'>>
which correctly generates the above code, I get the following:
<\nError in macro <<\'formTiddler>>

\nError in macro <<\'showWhenTagged>>\n"'>>

When I click on the errors, I get:
Error while executing macro <<\'formTiddler>>: No such macro
Error while executing macro <<\'showWhenTagged>>: No such macro

Any ideas?
w

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