Dynamically change theme or page type

Permalink
Hi,

First time posting here since I couldn't seem to find the answer. (Although I'm sure this is user error in search methodology, although I'm usually pretty good at finding what I need).

Anyways, here's the thought process. Most pages will have a default page type and render accordingly with the header and footer, but in a few instances of development I've found that I end up with a lot of content being pulled in, generally with the page list, that people don't necessarily want to open a new page to get to.

Similar to a quick view in a store front list, I could load all the information into a lightbox, but I don't necessarily want to render a million modals with my page-list so the obvious solution would be to load the page in the lightbox/modal within an iframe as necessary.

I would obviously need to dynamically change the layout of the page's content (most of which is usually in attributes, but sometimes includes blocks), including removing header and footer, based on wether it's loaded from an iframe or not. I was thinking I could do this with a URL flag and the PHP _GET() function to trigger some code to change the page type or theme.

OR

I could create a single page for the iFrame layout and pass it the cID through _GET() and have it pull in the attributes and block data.


Thoughts? If the first option is best practice then how would I go about changing the theme/page type?

 
mhawke replied on at Permalink Reply
mhawke
Just to get your thought process going, see what you can do with a theme called 'The Void' which has no header or footer and no styling to speak of:

http://www.concrete5.org/marketplace/themes/the-void/...