Sunday, March 15, 2009

Re: button to enable/disable a preset group of realms

Something like this should do the trick:

<html><a href="javascript:var t=store.getTiddler('MgtdSettings');t.setTagFromGroup('Realm','Realm1');t.addTag('Realm3');refreshPageTemplate();">Realms 1/3</a></html>

<html><a href="javascript:var t=store.getTiddler('MgtdSettings');t.setTagFromGroup('Realm','Realm2');t.addTag('Realm4');t.addTag('Realm6');refreshPageTemplate();">Realms 1/3</a></html>

These will work inside any tiddler. You might have to remove line breaks from with the href=".." part. You could put the links into DoWorkMenu for example. Or you could put them into the PageTemplate section of MonkeyGTDTheme in which case you wouldn't include the <html>..</html> tags.

Simon.

On Wed, Feb 4, 2009 at 6:05 AM, Praxis <.....@yahoo.com> wrote:

Hi all,
I was wondering how I would go about adding a button that would...
enable a set of 'Realms' and disable a different set (the remaining
Realms)
For example, say I have 5 Realms, called 1, 2 ,3, 4, 5 for simplicity.
I want a button that when clicked would enable Realms 1 & 3, and
disable Realms 2, 4, & 6
And maybe another button that does the opposite.
Both would enable/disable the set regardless of the current on/off
state of the Realms.

thanks
Praxis

0 Comments:

Post a Comment

<< Home