www.kcomp.net - Meine Firma

post released sites here made with phpwcms
ssyfrig
Posts: 364
Joined: Tue 2. Mar 2004, 17:01
Location: Zürich / Switzerland
Contact:

Post by ssyfrig »

Great site

How did you realize the left sub navi?

Greez Sven
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post 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>
pixelpublic GmbH | Agentur für Neue Medien und Gestaltung
Post Reply