Hey!

For one, you need to escape the literal quotation marks inside fET:
'"<<newJournal title:\"$1 YYYY_0MM_0DD_0hh_0mm_0ss\" focus:\"title\" 
text:{{store.getTiddlerText(\""+tiddler.title+"\")}}
    label:\""+tiddler.title+"\" [["+tiddler.title+"]] [[$2]]/>/>"'

I left out the Template bit at the end, not sure if it's needed.

w

On Friday, June 13, 2014 7:41:56 PM UTC+2, julien bouchez wrote:
>
> Hi all
>
> My tw has several twTypes :
>
> Constants
> Companies
> People
> Parts
> ...
>
> each type has a twTemplate
>
> ConstantsTemplate
> CompaniesTemplate
> PeopleTemplate
> PartsTemplate
> ...
>
> I am trying to make a list to trigger new tiddler creation from every 
> tiddlers
>
> [[ViewTemplate]]
>
> <div class='title' macro='view title'></div>
> <div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
> <div class='newTypeHere' macro='tiddler FetNewHere 
> with:{{tiddler.title}}'></div>
> <div class='thumbnails' macro='tiddler "FetThumbnails" thumbnails 
> with:{{tiddler.title}}'></div>
> <div class='viewer' macro='view text wikified'></div>
> <div class='filesCabinet' macro='tiddler FetFiles 
> with:{{tiddler.title}}'></div>
> <div class='tagClear'></div>
>
> [[FetNewHere]]
> <<forEachTiddler
>  where
>  'tiddler.tags.contains("twTypes")' 
>  write 
>  '" <<newJournal title:"$1 YYYY_0MM_0DD_0hh_0mm_0ss" focus:"title" 
> text:{{store.getTiddlerText(""+tiddler.title+""Template")/}/}
>     label:"+tiddler.title+" [["+tiddler.title+"]] [[$2]]/>/>"'
> >>
>
> I don't manage to have this last piece of code working.
>
> Could you please help me ?
>
> Regards
>
> Julien
>
>
>
>
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to