Re: 2nd: switch between template sets

Niels Dettenbach <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization Syndicat IT&Internet
Message-ID <[email protected]>
Hello Christian,


may be i've done something wrong. If i place differing dtml methodes from my 
templates to a sub-folder "mobile_folder" like in your code i seem to loose 
some of the current context.

Independent from how deep iam navigate in the page - so i.e. "getLevel()" 
returns everytime "0".

This means a lot of important ZMS methodes are not working (like ChildNodes 
methodes etc.).

May be i have to set the current context explicitely somewhere in my code?

If i place all the methodes of my second template within the root folder of 
the zms instance (like the default template methodes) everything works - but 
this is not a nice solution...

May be someone can point me to a solution of that?

many thanks to your all.

cheers,

Niels.

Am Freitag 05 September 2008 schrieb Christian Meier:
> <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>



-- 

---

  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.