Hi Jon,
1) Looking forward to seeing editable multiline fields!
2) Using a slider as you suggest would show the fields of the tiddler
EditFieldsTemplate, though it would edit and save them on the one
being edited ...not good!
So, the handler needs a little adjustment. Something which would do
really well as a (somewhat overdue) enhancement to the core function
findContainingTiddler() ...which is to (alternatively) return the root
tiddler of a transclusion cascade as a STORE object, instead of the
DOM element.
Here's what the handler would need to look like to work in a slider:
var tid=story.findContainingTiddler(place);
tid=tid?store.getTiddler(tid.getAttribute('tiddler')):null;
this.createInterface(place,tid);
Eventually, findContainingTiddler might be enhanced such that if one
specified a second parameter - maybe as 'true' - one would be given a
store object:
var oTid=story.findContainingTiddler(place,true);
Or even better, if one specified anything other than 'true' one would
be given the corresponding field of that store object, e.g.
var when=story.findContainingTiddler(place,'modified');
Which might still be null if there was no such store object (yet). If
a modification of findContainingTiddler were not possible, it may be
worth the while to implement this as
story.getRoot(ofElement,returnWhat);
Cheers, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.