RE: 2nd: switch between template sets
"Christian Meier" <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <000601c90f9a$64ac1830$2e044890$@info> |
Hello Niels,
> My target is to use different ZMS template sets (or subsets with different
> methodes) for the same zms instance - one for "default" www and one for a
> mobile / handheld "version" (not just a mobile CSS).
Maybe my proposed approach for filesystem-based template-editing meets your needs:
https://mail.dzug.org/pipermail/zope/2008-February/005368.html [German]
Step 3 for calling the templates in sub-folders could be extended to switch between default and mobile version. If the mobile-version is served via a sub-domain like mobile.foo.com, the selection of the right version could be done with a simple condition like this:
<dtml-if "URL.find('http://mobile.foo.com')==0">
<dtml-with mobile_folder>
<dtml-var standard_html_header>
</dtml-with>
<dtml-else>
<dtml-with default_folder>
<dtml-var standard_html_header>
</dtml-with>
</dtml-if>
Maybe you can bypass the acquisition-problems this way...
Regards, Christian Meier