W,
I think your mistake is referring to project names or tasks in a view
template.
My Projects are tagged # and listed using FET or TiddlerListMacro
Each Project tiddler includes
<<tiddler Projects with: {{tiddler.title}} >>
Which opens a generic view of a project customised using $1 or {{tiddler.title}}
I tag tiddlers with ProjectTask or Task and use this to select a different
tagged view and edit template.
This is not the whole answer because you are using forms - but I recommend
moving the logic into tags and you should be fine.
TonyM
Anthony Muscio
LaSourceProjects.org Open Source Sustainability Projects
LaSource.com.au <http://www.LaSource.com.au> Sustainable Products and
Business
SerendipityIdeas.com IT hints and Tips and Website hosting
Like personal Web 2.0 ? see www.tiddlywiki.com
On Thu, Nov 4, 2010 at 05:54, whatever <[email protected]> wrote:
> 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]<tiddlywiki%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tiddlywiki?hl=en.
>
>
--
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.