Try this on an empty test wiki. Don't use it on your thousand plus geneaology 
wiki without having made backups.

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>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe603894-572b-4d6e-a64e-2ac10525a8f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to