I Have a templated form for a gaming group i'm with.
and i SWEAR it was working right, but now...
The problem:
I have a tiddler w/ transcludes a template that has macro calls in it.
When i use the macros to save/edit fields on the tiddler, it is SUPPOSED to be saving the data to $:/Data/$(currentTiddler)$
Which in my mind shoudl be '$:/Data/My Character.
What is happening is the data is being ssaved to $:/Data/$:/Template/CharacterSheet !!
Does anyone have an idea why i'm resolving $(currentTiddler)$ as the transcluded template instead of the Active Tiddler?
Any help, much appreciated. Below i spell out a lil better the layout.
The layout is:
1 style tid: $:/Style/CharacterSheet
Contains CSS.
1 template tid: $:/Template/CharacterSheet
Contains HTML and macro calls like the following:
<span class="row full">
<fieldset class="charsheet">
<legend>Notes</legend>
<div class="row">
<<e_button e_notes>>
</div>
<div class="row">
<<text_box notes 120 e_notes>>
</div>
</fieldset>
</span>
1 macro tid: $:/Macros/CharacterSheet
Tagged: $:/tags/Macro
Contains various macros for swapping between display and edit fields. like this one:
\define text_box(field:nofield size:100 check:nocheck)
<$reveal type="match" state="!!$check$" text="edit">
<$edit-text tiddler="$:/Data/$(currentTiddler)$" index="$field$" size="$size$" tag="textarea" />
</$reveal>
<$reveal type="nomatch" state="!!$check$" text="edit" >
<$transclude tiddler="$:/Data/$(currentTiddler)$" index="$field$" mode="block"/>
</$reveal>
\end
1 tiddler: "My Character"
contains:
{{$:/Template/CharacterSheet}}
and several fields like:
e_notes: 'display' or 'edit' (used to toggle display/edit fields)