I'm having a very frustrating issue with a clonable page where I keep getting the error in the subject.
I'll post the relevant code (the header and menu snippets are working on every other page, so they're not the culprits:
And the gen_sidebar.html snippet
I'll post the relevant code (the header and menu snippets are working on every other page, so they're not the culprits:
- Code: Select all
<?php require_once ( 'couch/cms.php' ); ?>
<cms:template title='YA Resources' clonable='1' nested_pages='1'>
<cms:editable name='ya_content' label='YA Content' type='richtext' />
</cms:template>
<!DOCTYPE HTML>
<html>
<head>
<cms:embed 'header.html' />
</head>
<body>
<div class="container-fluid">
<cms:embed 'menu.html' />
<cms:if k_is_page >
<div class="row">
<div class="col-md-3">
<cms:embed 'gen_sidebar.html' />
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<h3><cms:show k_page_title /></h3>
</div>
<div class="panel-body">
<cms:show ya_content />
</div>
</div>
</div>
</div>
<cms:else />
<div class="row">
<div class="col-md-3">
<cms:embed 'gen_sidebar.html' />
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<h3>Map of YA Section</h3>
</div>
<div class="panel-body">
<cms:menu masterpage='ya_home.php' />
</div>
</div>
</div>
</div>
</cms:if>
</div>
</body>
</html>
<?php COUCH::invoke(); ?>
And the gen_sidebar.html snippet
- Code: Select all
<div class="panel panel-default">
<div class="panel-heading">
<h2><cms:show k_template_title /></h2>
</div>
<div class="panel-body">
<h3>Main Sections</h3>
<div class="list-group">
<cms:nested_pages masterpage=k_page_template depth='1' >
<a class="list-group-item" href="<cms:show k_nestedpage_link />">k_nestedpage_title</a>
<cms:if k_total_children>
<div class="list-group">
<cms:nested_pages masterpage=k_page_template childof=k_nestedpage_name limit='5' >
<a class="list-group-item" href="<cms:show k_nestedpage_link />"><cms:show k_nestedpage_title</a>
</cms:nested_pages>
</div>
</cms:if>
</cms:nested_pages>
</div>
</div>
</div>