(note: button=knap for the section reference)

On Mar 12, 12:33 am, Måns <[email protected]> wrote:
> Hi TwWizards
>
> I'm trying to make newtiddler buttons creating tiddlers with
> "boilerplate" text into custom fields in a custom edit template -
> however I can't make it work:
> [[newTemplate]]
> *<<tiddler newTemplate##button with: [[Project nr 1]][[average]]>>
> *<<tiddler newTemplate##button with: [[Project nr 2]][[below
> average]]>>
> *<<tiddler newTemplate##button with: [[Project nr 3]][[better than
> average]]>>
> !knap
> <<newTiddler
>         label:"$2"
>         prompt:"$1"
>         title:"Projectnote to student"
>         text:""
>         process:{{store.getTiddlerText("$1##proces")}}
>         content:{{store.getTiddlerText("$1##content")}}
>         product:{{store.getTiddlerText("$1##product")}}
>         present:{{store.getTiddlerText("$1##presentation")}}
>         tag:"Note"
>         accessKey:"1"
>         template:"NoteEditTemplate"
>         focus:"name"
>
> !end knap %/
> In my custom EditTemplate (NoteEditTemplate) I have macro='edit
> customfField'> with the same fieldnames that I use for the buttons:
> process, content, product and present - however they are NOT prefilled
> with boilerplatetext from the defined tiddlers :-(
> Not even the tag: "Note" works in the example...
>
> Please tell - if you know what I'm doing wrong...
>
> I found the documentation that made me try this 
> here:http://tiddlywiki.org/wiki/NewTiddler_(macro)
> It says: "...Using evaluated parameters, the content of a regular
> tiddler can be inserted as boilerplate text:
> <<newTiddler text:{{store.getTiddlerText("SampleTiddler")}}>>
> (Where SampleTiddler is the name of the tiddler containing the
> boilerplate text.)"
> and  "Only fields contained as input fields in the specified template
> can be primed with an initial value."
>
> I assume that if I specified a Custom EditTemplate with custom fields
> I can fetch text from tiddlersections and insert them in the fields -
> Am I wrong?
>
> Regards Måns Mårtensson

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