[SOLVED]Single Page Website using CMSMS 2.0
Posted: Fri Oct 16, 2015 1:20 pm
Hello,
in the past I was using the "menu" module with the following template to create my single page websites.
Basically, the template parsed through all content pages and rendered them on the main page, where I called the "menu" with this template below.
NOw the problem is, that in CMSMS 2.0.1.1 this does not work anymore.
I get a an error:
ERROR: at line 412 in file /home/xxx/www.xxx-xxx.xx/cmsms/lib/smarty/sysplug ... curity.php:
Message: URI 'http://www.xxx-xxx.xxx/cmsms/index.php? ... plate=true' not allowed by security setting
Does anyone have an idea what needs to be changed to make it work again? Or is there any other approach to create a single page website where I have multiple content pages that are rendered to one single page on the frontend?
thanks for the help
that is the template I used:
{assign var='number_of_levels' value=10000}
{if isset($menuparams.number_of_levels)}
{assign var='number_of_levels' value=$menuparams.number_of_levels}
{/if}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{elseif $node->index > 0}
{/if}
{if $node->parent == true or $node->current == true}
{assign var='classes' value='menuactive'}
{if $node->parent == true}
{assign var='classes' value='menuactive menuparent'}
{/if}
{if $node->children_exist == true and $node->depth < $number_of_levels}
{assign var='classes' value=$classes|cat:' parent'}
{/if}
{elseif $node->children_exist == true and $node->depth < $number_of_levels and $node->type != 'sectionheader' and $node->type != 'separator'}
{elseif $node->type == 'separator'}
<div class="divider"></div>
{else}
{capture assign=url}{$node->url}&showtemplate=true{/capture}
{fetch file="$url"}
{/if}
{/foreach}
{/if}
in the past I was using the "menu" module with the following template to create my single page websites.
Basically, the template parsed through all content pages and rendered them on the main page, where I called the "menu" with this template below.
NOw the problem is, that in CMSMS 2.0.1.1 this does not work anymore.
I get a an error:
ERROR: at line 412 in file /home/xxx/www.xxx-xxx.xx/cmsms/lib/smarty/sysplug ... curity.php:
Message: URI 'http://www.xxx-xxx.xxx/cmsms/index.php? ... plate=true' not allowed by security setting
Does anyone have an idea what needs to be changed to make it work again? Or is there any other approach to create a single page website where I have multiple content pages that are rendered to one single page on the frontend?
thanks for the help
that is the template I used:
{assign var='number_of_levels' value=10000}
{if isset($menuparams.number_of_levels)}
{assign var='number_of_levels' value=$menuparams.number_of_levels}
{/if}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{elseif $node->index > 0}
{/if}
{if $node->parent == true or $node->current == true}
{assign var='classes' value='menuactive'}
{if $node->parent == true}
{assign var='classes' value='menuactive menuparent'}
{/if}
{if $node->children_exist == true and $node->depth < $number_of_levels}
{assign var='classes' value=$classes|cat:' parent'}
{/if}
{elseif $node->children_exist == true and $node->depth < $number_of_levels and $node->type != 'sectionheader' and $node->type != 'separator'}
{elseif $node->type == 'separator'}
<div class="divider"></div>
{else}
{capture assign=url}{$node->url}&showtemplate=true{/capture}
{fetch file="$url"}
{/if}
{/foreach}
{/if}