On Sunday, August 18, 2013 11:38:04 AM UTC-7, sklpns wrote: > https://groups.google.com/forum/#!topic/tiddlywiki/GDoMxzof644 > is a way to load different stylesheets depending on users browser. > Is there a way to do the same thing with different PageTemplate tiddlers? > Load different PageTemplates for different browsers/screen resolutions? >
yes. The same technique can be used to conditionally apply different PageTemplates. For example, if you have two different layouts, called [[BigPageTemplate]] and [[SmallPageTemplate]], you can create a systemConfig with logic like this: if (...detect big page conditions ...) config.shadowTiddlers.PageTemplate="[[BigPageTemplate]]"; else config.shadowTiddlers.PageTemplate="[[SmallPageTemplate]]"; enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... http://www.TiddlyTools.com/#Donations Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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/groups/opt_out.

