This was also posted under Help Wanted. I am fine with either paid work or suggestions from others.
I have an old UDT that showed a listing of pages that are "children" to current page (in terms of navigation). It worked fine for CMSMS 1.5 or older I believe, does not work with latest CMSMS due to Smarty changes. I have never understood Smarty much... I already tried reading posts around that time, I have faint ideas, but I am afraid to change something I don't understand well... Here is code that needs to be updated:
Code: Select all
global $gCms;
$manager =& $gCms->GetHierarchyManager();
$thisPage = $gCms->variables['page_name'];
$currentNode = &$manager->sureGetNodeByAlias($thisPage);
$nodes = $currentNode->getChildren();
if ($currentNode->hasChildren()) {
echo '<ul class="sectionlinks">';
foreach ($nodes as $node) {
$content= $node->getContent();
$url = $content->GetURL();
if ($url == "#") { /* section header has no link by default */
$url = "index.php?page=".$content->Alias();
}
echo "<li><a href=\"".$url."\">".$content->MenuText()."</a> </li>";
}
echo "</ul>";
}