Nested content with smarty tags
Posted: Fri Oct 12, 2012 4:11 am
Hi all,
I'm working on a project with CMS MS 1.11.2. My goal is to build a publishing platform for multiple showcases that have no relation to each other. The platform should be easily accessed and edited.
My basis of this project is somewhat irregular and I don't know how to simplify it, so sorry for this flood of words.
My site structure works like this:
Each 1st-level content page of my CMS is an actual showcase that can be shared with others. As I stated these top-level pages have no relation to each other and I would just share them with their specific urls. So each 1st-level content page can be considered as a showcase.
Each 2nd-level (and deeper) page is a page section or a content block of its 1st-level parent (a showcase).
So these showcases are actually sites themselves that include nested content (all the child page content) in a vertical layout and a generated menu that scrolls the page in to the correct content anchor point when clicked.
With CGSimpleSmarty I have succesfully made an Global content block that gathers all the contents of all the children of a 1st-level parent. Each children are displayed in a matter depending on the template of the child itself.
The problem
I have also made a custom smarty tag for users to add videos and lightbox-pictures into the wysiwyg editor, so that the outcome is consistent in a visual manner. The smarty tags work fine when I put them into the 1st-level parents, but the editors should be editing the children of these showcases, not the parent that collects everything together. So when I try to put these tags (or any smarty tags) inside the children's content they still work when scoping directly to the child page itself, BUT the parent page displays them as a string.
After I found this out I figured that well of course it shouldn't work. But do you guys know any workaround for this? I have tried {literal} and some random escaping guesses.
Thanks
I'm working on a project with CMS MS 1.11.2. My goal is to build a publishing platform for multiple showcases that have no relation to each other. The platform should be easily accessed and edited.
My basis of this project is somewhat irregular and I don't know how to simplify it, so sorry for this flood of words.
My site structure works like this:
Each 1st-level content page of my CMS is an actual showcase that can be shared with others. As I stated these top-level pages have no relation to each other and I would just share them with their specific urls. So each 1st-level content page can be considered as a showcase.
Each 2nd-level (and deeper) page is a page section or a content block of its 1st-level parent (a showcase).
So these showcases are actually sites themselves that include nested content (all the child page content) in a vertical layout and a generated menu that scrolls the page in to the correct content anchor point when clicked.
With CGSimpleSmarty I have succesfully made an Global content block that gathers all the contents of all the children of a 1st-level parent. Each children are displayed in a matter depending on the template of the child itself.
The problem
I have also made a custom smarty tag for users to add videos and lightbox-pictures into the wysiwyg editor, so that the outcome is consistent in a visual manner. The smarty tags work fine when I put them into the 1st-level parents, but the editors should be editing the children of these showcases, not the parent that collects everything together. So when I try to put these tags (or any smarty tags) inside the children's content they still work when scoping directly to the child page itself, BUT the parent page displays them as a string.
After I found this out I figured that well of course it shouldn't work. But do you guys know any workaround for this? I have tried {literal} and some random escaping guesses.
Thanks