Hi all,
I have part of my site as an article repository similar to the news area from tutorial 2. I am using renderwith, dependent upon a url segment, to render the pages with an alternative template and css file if /frame is added to the end of the url and this is working okay. The reason I am doing this is so that I can embed just the content area and sidebar menu of these pages in another site using an iframe, with styling to match the site they are embedded in, as well as displaying them on the main site as standard pages.
The problem I have is that when I use the sidebar menu to navigate to a different article or category I am losing the alternative template and css, because of course the menu link doesn't have /frame appended to it.
Can anyone help me with how to keep the template the same from one page to the next so that if I am on the main site, the pages will render as normal but if the page was reached with a /frame url segment, any pages you navigate to from that page render with the same template? I'm sure this shouldn't be tricky but at the moment I can't work it out. Any help much appreciated!