Hi c pa
> *Is there a method to put in the following fix without directly editing
> the boot.js code?*
>
> To fix them I had to directly edit boot.js to add the following for each
> field I wanted to use:
>
> $tw.modules.define("$:/boot/tiddlerfields/[fieldname]","tiddlerfield",{
> name: "[fieldname]",
> parse: $tw.utils.parseStringArray,
> stringify: $tw.utils.stringifyList
> }
>
You can create a JS module with the module-type "tiddlerfield" that exposes
the same properties; the core will load it as part of the boot process.
But adding a tiddlerfield module is not recommended. It means that all code
that attempts to read that field will return an array, rather than a string.
The recommended approach is to use $tw.utils.parseStringArray when you read
your field to convert it into an array, and then use
$tw.utils.stringifyList when you write your field to ensure that it gets
written as a string.
Does that make sense?
Best wishes
Jeremy
> );
>
> --
> 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 http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>
--
Jeremy Ruston
mailto:[email protected]
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.