On May 10, 5:11 pm, rakugo <[email protected]> wrote:
> Currently the name is the tiddler you give it. I think it should stay
> this way as one can determine username from the modifier on the
> tiddler and the timestamp from the modified date.
I have seen the template shadow tiddler, that defines the name. But
with the template I have no possibility to have a dynamically created
tiddler name. Since your plugin creates a "unique" name, I thoght this
could be an option for advanced users.

You are right, if the name is too unique, the program cant find an
existing result anymore.

But the following doesn't work. right?

if(!destination) {
  destination = "Result " + Math.random();
}

I'd suggest something like this for advanced users :)
  destination = "Result " + userName;

If the load routine can't find a "Results" tiddler it looks for
"Result " + userName :)

> > - The results tiddler should contain "[[TiddlerName]] - Label" as a
> > heading
> > eg: [[Question 1]] - Do you like chocolate
>
> > [[Question 1]] makes the heading clickable.
>
> The problem with this is that it then becomes difficult to manage the
> saving/loading process.
I think indexOf "]]" and cut the rest can do the trick for loading. or
a regexp, to get the tiddler title.

> Would a separate section listing all the questions in the
> questionnaire suffice?
Can't imagine now. But I think it makes reading more complicated.

> I'm still not 100% sure about the saving mechanism. I've thought of
> using fields, but sections were currently the easiest way to do this.
> Whether they should be in sections or slices is another question! :)

I like the way it is at the moment. The result is perfectly human
readable. Fields can't be found. Slices could work too, but I think
sections look better. Even better, if they would have more meaning :)

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to