Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls
3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 18, 2020 (RSS)
By dmn - August 17, 2020
Have set the detail page but keep getting this error on child link.
Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls
Here is nav code top for parent with children and css layout
list($navcategoryRecords, $nav_selectedCategory) = getCategories(array(
'tableName' => 'navcategory',
'selectedCategoryNum' => '', // defaults to getNumberFromEndOfUrl()
'categoryFormat' => 'showall',
'ulAttributes' => 'class="mega_menu"', // add html attributes to <ul> tags, eg: 'class="menuUL"' would output <ul class="menuUL">
'liAttributesCallback' => 'customMenuLIAttr', // ADVANCED: custom function to return li attributes, eg: 'myLiAttr' and function myLiAttr($category) { return "id='li_uniqueId_{$category['num']}'"; }
));
function customMenuUlAttr($category) {
global $GLOBALS;
return ($category['_hasParent'] && $category['depth'] == '1')? " id=\"child{$category['parentNum']}\" class=\"mega_menu\"" : "" ;
}
function customMenuLIAttr($category) {
global $GLOBALS;
return ($category['_hasChild'])? " class=\"has_mega_menu mobile_menu_toggle\"" : "" ;
}
Here is nav code on page, top navbar:
<ul id="navy" class="clearfix">
<?php foreach ($navcategoryRecords as $categoryRecord): ?>
<?php echo $categoryRecord['_listItemStart'] ?>
<?php if ($categoryRecord['_hasChild']): ?>
<a href="<?php echo $categoryRecord['_link'] ?>"><span><?php echo $categoryRecord['name'] ?> <i class="fas fa-chevron-down"></i></span></a>
<?php else: ?>
<a href="<?php echo $categoryRecord['_link'] ?>"><span><?php echo $categoryRecord['name'] ?></span></a>
<?php endif; ?>
<?php echo $categoryRecord['_listItemEnd'] ?>
<?php endforeach; ?>
</ul>
And here is page source view:
<ul id="navy" class="clearfix"><li class="has_mega_menu mobile_menu_toggle"><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>About Marthas <i class="fas fa-chevron-down"></i></span></a><ul class="mega_menu"><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Charism</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Leadership Team</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Saint Martha</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>History & Archives</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Bethany Property</span></a></li></ul></li><li class="has_mega_menu mobile_menu_toggle"><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Martha Ministries <i class="fas fa-chevron-down"></i></span></a><ul class="mega_menu"><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Ministry of Spirituality</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Martha Justice Ministry</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>StFX Wellspring Centre</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Collaboration</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Martha Ministry Stories</span></a></li></ul></li><li class="has_mega_menu mobile_menu_toggle"><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>News & Events <i class="fas fa-chevron-down"></i></span></a><ul class="mega_menu"><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Latest CSM News</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Martha Justice News</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Federation News</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>News From the NGO</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span> In Memoriam</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>OLAM Newsletter</span></a></li></ul></li><li class="has_mega_menu mobile_menu_toggle"><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>Join Us <i class="fas fa-chevron-down"></i></span></a><ul class="mega_menu"><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>As a Sister</span></a></li><li><a href="javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Section%20Editors%20>%20Viewer%20Urls')"><span>As Martha Associate</span></a></li></ul></li></ul>
How do I get rid of this?
By Carl - August 18, 2020 - edited: August 18, 2020
Hi dmn,
Once you login to CMS Builder, if you go to the "Section Editors" page, you can click on "modify" on any of the pages with the error. For example, if you click on modify for "About Marthas", there will be a tab beside the "General" tab called "Viewer Urls".
I have attached a screenshot showing an example of this.
The error is stating you need to go to the Section Editor and click on modify on your child page, then set the Detail Page Url in the Viewer URLs section.
PHP Programmer
interactivetools.com