Its not a field.
I know about fields.
Eventually I wrote
<<forEachTiddler
where 'tiddler.tags.contains("Male Characters")'
write
'"|[["+tiddler.title+"]]|" +tiddler.data("firstname")+ "|"+
tiddler.data("lastname")+"|"+tiddler.data("description")+"|[["
+tiddler.data("species")+ "]]|\n"'
begin '"| Name | First name | Last name | Description | Species |h\n"'
none '"No Male Characters defined\n"'
>>
Note that "tiddler.data()".
Note that the tiddler -- as I said -- had <data>...</data> in its body.
Nothing to do with fields.
On Thursday, October 31, 2013 10:42:25 AM UTC-4, cmari wrote:
>
> Hello Anton,
> It can be a bit more challenging to search for information about
> displaying information from forms because in TW it's possible to use both
> 1. "fields" in (html) forms and
> 2. "custom fields"
>
> Just to be sure, do you have the DataTiddlerPlugin?
>
> http://tiddlywiki.abego-software.de/#DataTiddlerPlugin
> There's pretty good documentation in the plugin description, showing how
> in fET you can either use
> DataTiddler.getData(tiddler,field)
> OR
>
> tiddler.data("field")
>
>
> cmari
> On Thursday, October 31, 2013 6:41:50 AM UTC-7, Anton Aylward wrote:
>>
>> While my use of forms & form templates has worked out well, I'm not
>> faced with using the data in the tiddlers that make use of the forms.
>>
>> I'm gaining experience with using the forEach macro with fields and
>> trying my hand with slices, but the <data/> has me beat.
>>
>> To give an example, I have tiddlers that contain things like this:
>>
>> <<formTiddler
>> [[CharacterTemplate]]>><data>{"firstname":"John","lastname":"Smith",,"description":"Miner","appearance":"Blue
>>
>>
>> eyes\nBlack hair\n","nationality":"Irish"}</data>
>>
>> I was hoping that I could use slices to deal with the parts like
>> "firstname":"John"
>> but it doesn't seem to work out.
>>
>> I spent much of last night going back tough the list archives and
>> googling and looking though other sites, but either my google-fu is
>> failing, this isn't something one should do when tired, or its not there.
>>
>> Surely, since form templates have been used to enter data, there is a
>> way to extract and collate that data?
>>
>> Can anyone help or give me pointers?
>>
>> Thanks
>>
>>
>> --
>> "A witty saying proves nothing."
>> -- Voltaire
>>
>
--
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/groups/opt_out.