Page 2 of 2

Posted: Tue 25. Apr 2006, 10:29
by ssyfrig
Great site

How did you realize the left sub navi?

Greez Sven

Posted: Tue 25. Apr 2006, 10:36
by nekket
That's a {NAV_TABLE_COLUMN:X} but the X ist the parent_id of the article.

I use this a a file "navtable.php":

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."}";
?>
The template uses this:

Code: Select all

<div id="navleft">{PHP:navtable.php}</div>