Posted: Tue 25. Apr 2006, 10:29
Great site
How did you realize the left sub navi?
Greez Sven
How did you realize the left sub navi?
Greez Sven
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
<?php
$id = $GLOBALS['content']['cat_id'];
$parent_id = $GLOBALS['content']['struct'][$id]['acat_struct'];
$doc_name = html_specialchars($GLOBALS['content']['struct'][$id]['acat_name']);
$doc_parent_name = html_specialchars($GLOBALS['content']['struct'][$parent_id]['acat_name']);
if ("1" == $id) {$colnr = "1";}
if ("2" == $id) {$colnr = "2";}
if ("3" == $id) {$colnr = "3";}
//elseif ("150" == $parent_id) {$colnr = "149";}
else $colnr = $parent_id;
echo "{NAV_TABLE_COLUMN:".$colnr."}";
?>
Code: Select all
<div id="navleft">{PHP:navtable.php}</div>