[SOLVED] nav_table_column question
Posted: Thu 12. Jan 2006, 10:26
hy everyone!
after reading lots of posts and trying different codes i need a little kick in the right direction.
my site is containing two languages, german and english.
there is a top navigation based on {NAV_ROW:2:0}, so all levels under german are displayed. works fine!
my problem is the subnavigation based on {NAV_TABLE_COLUMN:2}
every menu-item has sub-categories. if you click on products, the subnavigation should only show all menupoints of products.
example: http://www.gnuelps.de/index.php?phpwcms
i know there is the possibility to use {NAV_LIST_CURRENT} which isnt't the soloution for me at this project.
so i tried the code from Rainer G: --...--/index.php/topic,100.0.html
but the code doesent work for me, it shows me the complete menustructure again.
does anybody has a hint for me? would be really appreciated. love this cms!
greets, bernard
after reading lots of posts and trying different codes i need a little kick in the right direction.
my site is containing two languages, german and english.
there is a top navigation based on {NAV_ROW:2:0}, so all levels under german are displayed. works fine!
my problem is the subnavigation based on {NAV_TABLE_COLUMN:2}
every menu-item has sub-categories. if you click on products, the subnavigation should only show all menupoints of products.
example: http://www.gnuelps.de/index.php?phpwcms
i know there is the possibility to use {NAV_LIST_CURRENT} which isnt't the soloution for me at this project.
so i tried the code from Rainer G: --...--/index.php/topic,100.0.html
Code: Select all
[PHP] $id = $GLOBALS['content']['cat_id'];
$parent_id=$GLOBALS['content']['struct'][$id]['acat_struct'];
While ($parent_id<>0){
$id=$parent_id;
$parent_id=$GLOBALS['content']['struct'][$id]['acat_struct'];
}
if ($id > 0) {
echo '{NAV_TABLE_COLUMN:'.$id.'}';
}
[/PHP]
does anybody has a hint for me? would be really appreciated. love this cms!
greets, bernard