Sir,
I have 1000 document and client has given me 5 different designs, which i have to integrate into the documents.
At present I have a default template basetemplate for all t1000 documents.
I want to switch the document template on the basis of the user setting similar like orkut.
i.e.
$mydesign=1; then i will show the document with design 1.
$mydesign=2; then i will show the document with design 2.
$mydesign=3; then i will show the document with design 3.
So that I do not have to create another 1000 document for each design given by the client.
I am using the friendly url and do not want to change the path of the document.
The site is in the development stage.
How I can achieve it ??
My configuration are below.
MODX
Your latest and current version.
I am adding tables and fields for my project.
reducing the plugin and the
Web Server:
* PHP version 5.2.x)
* Apache2
* RHEL4
(Shared webhosting)
Database:
* MySQL 5
Browser/Client:
* Moxzila firefox(1.5,2,3),Internet explorer(5.5,6,7,8),chrome,opera ,safari (current versions)
* MS Windows98,Xp,Vista and Mac[b][/b]
This is off the top of my head but I think you could create a plugin that would reset the page’s template based on a $_SESSION variable, system setting, or whatever, before the page is rendered. I think having the plugin triggered by the OnLoadWebDocument event might work.