NB:
Strictly development-related issues are better discussed on the dev group:
    http://groups.google.com/group/TiddlyWikiDev/
You're more likely to get competent help there.

> How can I define a global variable [...]
> Also, what about functions? Can I define a function in one Tiddler and
> call it in a script in a different Tiddler?

config.extensions.myPlugin = {
    mySetting: "lorem ipsum",
    myFunction: function() { return "foo"; }
};

This might be of interest:
http://tiddlywiki.org/wiki/Dev:Plugin_Specifications#Template
http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/template.js

> Second, I'm working on making my own GTD mod for my TW and I want
> Tiddlers to have a new parameter such as "Deadline".

Tiddlers can have custom fields:
http://tiddlywiki.org/wiki/Dev:Extended_Fields

var tiddler = store.getTiddler("myTiddler");
tiddler.fields.deadline = (new Date()).toString();

Note that a field name must be lowercase and its value must be a string.

Such changes are persisted with store.saveTiddler:
http://trac.tiddlywiki.org/browser/Trunk/core/js/TiddlyWiki.js?rev=12238#L309

HTH.


-- F.

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

Reply via email to