2nd: switch between template sets

Niels Dettenbach <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <[email protected]>
Dear List readers and ZMS devels,



regarding my last posting yesterday i will try to "simplify" my question. May 
be someone is on the same way currently or still knows a solution for this:
--

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).

This means a website user should be able to switch between different template 
sets on his request - e.g. based on URI (preferrably) or by a session var. 

The selected Theme / template set should be persistent over (internal) links.

I assume there should be a way to realize this - the content and his 
presentation should be independent in a modern CMS. 


this feature would offer us:
=======

   - Usage of a browser switch (like WURFL) to recognize mobile browsers and 
(re-)direct them to the "mobile version" of the ZMS site. 

   - Offer a alternative link, button or dropdown menu to the mobile version 
(and back) on the page

   - The ZMS can deliver a different content stream, smaller amount of 
(mobile) XHTML and "optimized" content objects ("...Float") for mobile users

   - it is possible to present a subset of the content objects (like a meta 
attribute: "show in mobile page too").

   - easy exchange and installation of different template sets (by folders) 
within a running ZMS site


my (current) solution(s):
========
Until now i didn't find a proper and really handy solution for that.

I tried to use the usual Zope aquisition by URI (see last mail) - but with no 
luck. Because ZMS is looking for some static method IDs 
(like "bodyContent_Float") i have two options in general:

	1.) place different methodes into a sub folder and use Zope aquisition 
(preferrably)

	2.) use sessions and put if/else clauses in every by ZMS required template 
method (this would be result in very [!] unhandy code and template sets)

...so i tried some solutions like (1.) - but this seems not to work for me 
("Index out of range"). 

For other / own ZOPE applications (1.) works reliable as required for me.

(ZMS / Zope Caching is disabled / not even required for this site.)

---
Many thanks in advance for any help.

cheers and
best regards,



Niels.


-- 

---

  Niels Dettenbach
  ---
  Syndicat IT&Internet
  http://www.syndicat.com
  T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
  ---
  Kryptoinfo: 
  PGP public key ID 651CA20D
  Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
  https://syndicat.com/pub_key.asc
  ---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.