Singles Pages : double theming
Permalink
Hi,
I am developing a web app with concrete5 (for users management, login, ...).
My webapp is made with some single pages with js and php (and i noted there a lot of bad reactions of concrete5 with jquery, jquery ui and jqmobile :( )
I want my app to be accessible in a main site and i want too the webapp to be accessible by other websites, embedded in an iframe.
In order to have my webapp embedded in my main C5 site, i did a template view.php in my theme (with the autonav for example).
But doing that, when i see my page1.php in the iframe, there is the view template (and so i see the autonav).
Is there a solution to have to different templates in this case, one for the main site, one for the distant sites ?
The best one should be to include my single pages in the model templates theme, but it's not possible. One another could be to have a copy of each of my single pages of the webapp with a different name and to add a minimalist template for these copies. But, it's not really good and I will have to maintain two times more pages.
An idea ?
Thanks :)
I am developing a web app with concrete5 (for users management, login, ...).
My webapp is made with some single pages with js and php (and i noted there a lot of bad reactions of concrete5 with jquery, jquery ui and jqmobile :( )
I want my app to be accessible in a main site and i want too the webapp to be accessible by other websites, embedded in an iframe.
In order to have my webapp embedded in my main C5 site, i did a template view.php in my theme (with the autonav for example).
But doing that, when i see my page1.php in the iframe, there is the view template (and so i see the autonav).
Is there a solution to have to different templates in this case, one for the main site, one for the distant sites ?
The best one should be to include my single pages in the model templates theme, but it's not possible. One another could be to have a copy of each of my single pages of the webapp with a different name and to add a minimalist template for these copies. But, it's not really good and I will have to maintain two times more pages.
An idea ?
Thanks :)
if anybody is interested, I solve my problem with a trick. I add a function to extract GET parameter of hte url in the single pages of my app.
I put a parameter myApp in the url of the page in the iframe. If myApp == 1, I hide the block of the view template i don't want when the single pages are in the iframe.
I think I can enable it with maybe localStorage. I will test it later.