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)
--
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/dd188d08-a7e2-4fd6-976f-de2931e09a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.