Hi c pa

>> 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.

>Yay! That worked and I got all the other pieces to work too. I've posted
the results at http://cpashow.tiddlyspot.com/

I'd recommend against the approach of adding a tiddlerfield module (and I
regret using them in the core). If you then have components that rely on
the field being an array then those components won't work on other fields
that haven't been treated with a tiddlerfield. This reduces flexibility for
the user to apply those components to whatever fields they want.

OK, so more work tomorrow. I'll add some code that checks to see if the
> field is an array or not before doing the assignments.
> I'll post here when I get it working.
>

You don't need to check whether the field is already an array;
$tw.utils.parseStringArray
will happily cope with strings or existing arrays.

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.

Reply via email to