I’ve been looking high and low, but I can’t find a layout switcher that doesn’t just let me switch css but also the html code and also saves the users chosen setting in a cookie.
I want to be able to have several site layouts and functions and let the user choose which he/she prefers. The content i.e. the text will be the same no matter what layout a user sets.
Does anyone know a jquery based code that allows this? I prefer jquery, but php would be acceptable too.
Store your content as xml, in a format of your choosing. Something like the following
Page.xml
Must be parsed as PHP
Layout-[name].xslt
You can just deliver the XML page to the client, and their browser will do the transformation!