Dynamical exchangeable PageTemplate?

37 views
Skip to first unread message

Mirko Richter

unread,
Sep 18, 2020, 10:15:50 AM9/18/20
to TiddlyWikiDev
Hi,

in my project a need switch want to switch the PageTemplate dynamically. For that i modified my local PageTemplate like this:


(and remind myself using a Diff-Mechanism if someone changes the PageTemplate-Tiddler during TW5-Development to have a look on it ;) )

The code i removed in the Screenshot above (marked mostly red) is part of the my "DefaultPageTemplate". When i like to switch to another style just change "ActivePageTemplate" to point to my active Template. It works like a charm for me (but may introduce performance-issues).

However, i more and more get the feeling that others also need to solve that problem and ask myself how they do that. Is there something i oversee? If not, can it be implemented into the core-TW5 somehow to make that change in my TW5-Instance a little less >>unstable<< (just means the fact that i overwrite the core-ShadowTiddler)?

Thanks a lot,
Mirko
Reply all
Reply to author
Forward
0 new messages