I'll try to rephrase.

I like MptwTheme. I want to modify ViewTemplate slightly (add fold/
unfold macros to the toolbar) but I don't want to create my own copy
of ViewTemplate as this way I will miss the new goodies when they
appear in the future MptwTheme##ViewTemplate. How can I modify it in
runtime?

I've stretched my abilities as far as this:

var themeTiddler=store.getTiddler("MptwTheme");
if (themeTiddler) { themeTiddler.text.replace(/
closeTiddler/,"collapseTiddler collapseOthers closeTiddler"); }

But this change becomes permanent on the next save so
a) the macros keep being added on each save
b) MptwTheme is now different from the original which is what I wanted
to avoid in the first place.

So basically I want to have my cake and eat it too. Any help? Thanks.


On Feb 24, 10:16 pm, RA <[email protected]> wrote:
> What would be the recommended way to "inject" colapseTiddler into
> MptwTheme? (I'd like to leave the actual theme tiddler untouched,
> instead modifying it "on the fly" from a systemConfig tiddler of my
> own)
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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