name.middle={{$:/temp/person!!name.middle}} name.family={{$:/temp/person!!name.family}}name.handle={{$:/temp/person!!name.handle}}
date.birth={{$:/temp/person!!date.birth}} place.birth={{$:/temp/person!!place.birth}} date.baptism={{$:/temp/person!!date.baptism}} place.baptism={{$:/temp/person!!place.baptism}}
date.death={{$:/temp/person!!date.death}} place.death={{$:/temp/person!!place.death}} date.burial={{$:/temp/person!!date.burial}} place.burial={{$:/temp/person!!place.burial}} cause.death={{$:/temp/person!!cause.death}}
Rather than temptiddler!!entryname
Regards
Tony
I was experimenting on this area I have neglected. Try this
[[mydata]]
<$edit-text tiddler="mydata" index="v1"/>
{{mydata##v1}}
<$edit-text tiddler="mydata" index="v2" tag=input/>
Tony
type="application/x-tiddler-dictionary"
<$action-setfield $tiddler="mydatatiddler" $index="name.middle" $value=
{{$:/temp/person!!name.middle}}
/>
I favor fields as well however if we iterate datatidder keys/indexes they can be used like any title list.
For fun I just built a view template for data tiddlers that lets you edit all values in that data tiddler. It does not loose focus and you can have multiline text in multiple records in one tiddler, and in the view template you can lay them out as a form. These automatically become json format.
Regards
Tony
Do you already have a lot of these genealogical records that you want to convert from fields to data tiddlers?
Do you want to keep the existing fields and extract their content into a data tiddler in the same tiddler's text area, for display convenience?
or are you just starting to create these records and want to use a form for data input into a data tiddler structure?
Is your goal a unique data tiddler for each individual containing names, birth, baptism, burial?
How many individuals are you thinking of?
I'm only just exploring data tiddlers myself but here are some observations from a fellow beginner;
Data tiddlers are sometimes easier for input and readability but the data values can be more difficult to filter and manipulate for output.
Fields are sometimes difficult for readability but are much easier for manipulating and filtering output.
Data tiddlers can greatly reduce the number of tiddlers needed, they are readable and are easy to export but those benefits depend on how many records you need to create and how you structure them.
If you make a data tiddler for each individual then you'll still create the same number of tiddlers as the fields method and might hit problems if there are identical names.
There are some useful tips on data tiddlers here;
https://kookma.github.io/TW-Scripts/#datatiddler
Data tiddlers may not exist forever in their current form, see the discussion here;
https://groups.google.com/forum/m/#!topic/TiddlyWiki/GqqPZnp6VMI
Hi Chris
Do I understand what you want correctly?Do you already have a lot of these genealogical records that you want to convert from fields to data tiddlers?
Do you want to keep the existing fields and extract their content into a data tiddler in the same tiddler's text area, for display convenience?
or are you just starting to create these records and want to use a form for data input into a data tiddler structure?
Is your goal a unique data tiddler for each individual containing names, birth, baptism, burial?
How many individuals are you thinking of?
It's not a complete solution but it might give some help. You'll need to extend it with more indexes/fields according to your needs. The wizards here on the forum might have better solutions to offer.
Paste this into a new tiddler;
\define data_title()
$:/?data/{{$:/temp/person!!name.family}}/{{$:/temp/person!!name.middle}}/{{$:/temp/person!!name.given}}
\end
\define addProfile()
<$wikify name="person_data_title" text=<<data_title>> >
<$action-setfield $tiddler=<<person_data_title>> $index=name.middle $value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<<person_data_title>> $index=name.family $value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<<person_data_title>> $index=name.given $value={{$:/temp/person!!name.given}}/>
<$action-setfield $tiddler=<<person_data_title>> $field=name.middle $value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<<person_data_title>> $field=name.family $value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<<person_data_title>> $field=name.given $value={{$:/temp/person!!name.given}}/>
<$action-setfield $tiddler=<<person_data_title>> $field=tags $value={{$:/temp/person!!name.family}}/>
</$wikify>
<$action-setfield $tiddler='$:/temp/person' name.family="" name.middle=""
name.given=""/>
<$action-sendmessage $message="tm-auto-save-wiki"/>
\end
Family name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' field='name.family'/><br>
Middle name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' field='name.middle'/><br>
Given name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' field='name.given'/><br>
<$button actions=<<addProfile>> >Add </$button>