How can I change a site template on-the-fly?

Author Message

Paco Avila

Friday 26 September 2003 8:00:38 am

I want to put a link name "Accesibility" and must show an other site version with a more basic design. This value should be "remembered" in the actual user session. But I don't know how can change a site template on-the-fly nor put this value in the session.

Thanks in advance.

Arash Molavi

Friday 26 September 2003 8:28:30 am

You should probebly do it "on the fly", it'll make it somewhat more simple for you:D

Paul Borgermans

Friday 26 September 2003 11:22:52 am

Same way you would do for eg a print-layout.

Create a new pagelayout mode (and define it in layout.ini.append in either override or a specific siteaccces).

Then use /layout/set/<mynewlayout>/<rest of current url>

<rest of current url> can be nice urls too

All your links will have this additional part prepended.

Proof: go to the doc index on ez.no, select the "printer version" link and browse. If you have acrobat(full version), you can easily create your own set of pdf docs typing in the print url, although it will not be that friendly (but cross links work). After you have done such things with acrobat, send a new pair of CPU's to ez.no ;-)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.