{NAV_ROW} frontend menu status
{NAV_ROW} frontend menu status
Hello,
I was already warnt about the {NAV_ROW:INT:0} tag displaying hidden structure levels. This however only happens when you open an article inside that hidden level : http://www.madpro.co.za/site/index.php?id=11,7,0,0,1,0.
My simple question: isn't there a single way to fix this??! I don't want to use {NAV_LIST_TOP} because of the listing of home .
Thanking in advance, Reinoud
I was already warnt about the {NAV_ROW:INT:0} tag displaying hidden structure levels. This however only happens when you open an article inside that hidden level : http://www.madpro.co.za/site/index.php?id=11,7,0,0,1,0.
My simple question: isn't there a single way to fix this??! I don't want to use {NAV_LIST_TOP} because of the listing of home .
Thanking in advance, Reinoud
Hi all,
I have a similar problem:
at my site
http://www.scholtysik.net/cms/index.php
I have a Suche (search) link at the right top side and a NAV_ROW menu at the footer. When I click at it, the search content appears, but also Suche appears within the NAV_ROW, although the structure level status is hidden... How can I correct this?
-------------------------------------------------------------------------------------
Hi zusammen,
auf meiner Seite
http://www.scholtysik.net/cms/index.php
have ich einen Suche Link rechts oben und ein NAV_ROW Menü im Footer. Wenn ich auf Suche klicke, erscheint der Suche-Inhalt, aber Such erscheint auch im NAV_ROW Menü, obwohl der Status dieser Strukturebene "versteckt" ist. Wie kann ich diesen Bug beheben?
Joachim
I have a similar problem:
at my site
http://www.scholtysik.net/cms/index.php
I have a Suche (search) link at the right top side and a NAV_ROW menu at the footer. When I click at it, the search content appears, but also Suche appears within the NAV_ROW, although the structure level status is hidden... How can I correct this?
-------------------------------------------------------------------------------------
Hi zusammen,
auf meiner Seite
http://www.scholtysik.net/cms/index.php
have ich einen Suche Link rechts oben und ein NAV_ROW Menü im Footer. Wenn ich auf Suche klicke, erscheint der Suche-Inhalt, aber Such erscheint auch im NAV_ROW Menü, obwohl der Status dieser Strukturebene "versteckt" ist. Wie kann ich diesen Bug beheben?
Joachim
Hi blutch,
I have got a solution for the NAV_ROW problem:
Look for this code fragment in front.func.inc.php:
There is a commented line:
uncomment it and comment the following lines:
and you're done!!
Have fun and thanks to Oliver Georgi for the prompt response...
Joachim
I have got a solution for the NAV_ROW problem:
Look for this code fragment in front.func.inc.php:
Code: Select all
foreach($GLOBALS['content']['struct'] as $key => $value) {
//2005-03-28 Oliver Georgi
//if($GLOBALS['content']['struct'][$key]["acat_struct"] ==
$act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct']
[$key]['acat_hidden']) {
//also show when selected structure is hidden but is within
selected tree
if($GLOBALS['content']['struct'][$key]["acat_struct"] ==
$act_cat_id && $key != $act_cat_id
&& (!$GLOBALS['content']['struct'][$key]['acat_hidden']
|| isset($GLOBALS['LEVEL_KEY'][$key]))) {
Code: Select all
//if($GLOBALS['content']['struct'][$key]["acat_struct"] ==
$act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct']
[$key]['acat_hidden']) {
Code: Select all
if($GLOBALS['content']['struct'][$key]["acat_struct"] ==
$act_cat_id && $key != $act_cat_id
&& (!$GLOBALS['content']['struct'][$key]['acat_hidden']
|| isset($GLOBALS['LEVEL_KEY'][$key]))) {
Have fun and thanks to Oliver Georgi for the prompt response...
Joachim
Hi Joachim,
I checked the corresponding lines for {NAV_TABLE_COLUMN} and found the code, but this didn't solve the problem, the hidden site structures keep appearing in my navigation
Achim
I checked the corresponding lines for {NAV_TABLE_COLUMN} and found the code, but this didn't solve the problem, the hidden site structures keep appearing in my navigation
Achim
ParaDroid
knquadrat edv + marketing
http://www.knquadrat.de
phpWCMS Dokumentation | Deutsch | English
knquadrat edv + marketing
http://www.knquadrat.de
phpWCMS Dokumentation | Deutsch | English
With the help of Joachim Scholtysik I was able to fix the problem, described in the first post. An extension of Joachims posts with a few more clues:
Find the file front.func.inc.php in the folder include/inc_front/ and look for the following code at line 934:
What you have to do now is very simple. "Uncomment" the following line by removing the two slashes //:
"Comment" the following lines by placing two slashes // before them::
You're new code should look as follows:
Many thanks to Oliver Georgi and Joachim Scholtysik!
Find the file front.func.inc.php in the folder include/inc_front/ and look for the following code at line 934:
Code: Select all
foreach($GLOBALS['content']['struct'] as $key => $value) {
//2005-03-28 Oliver Georgi
//if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct'][$key]['acat_hidden']) {
//also show when selected structure is hidden but is within selected tree
if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id
&& (!$GLOBALS['content']['struct'][$key]['acat_hidden'] || isset($GLOBALS['LEVEL_KEY'][$key]))) {
Code: Select all
//if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct'][$key]['acat_hidden']) {
Code: Select all
if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id
&& (!$GLOBALS['content']['struct'][$key]['acat_hidden'] || isset($GLOBALS['LEVEL_KEY'][$key]))) {
Code: Select all
foreach($GLOBALS['content']['struct'] as $key => $value) {
//2005-03-28 Oliver Georgi
if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct'][$key]['acat_hidden']) {
//also show when selected structure is hidden but is within selected tree
//if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id
//&& (!$GLOBALS['content']['struct'][$key]['acat_hidden'] || isset($GLOBALS['LEVEL_KEY'][$key]))) {
Many thanks to Oliver Georgi and Joachim Scholtysik!
(German version at the end : Deutsche Version am Ende)
For all where this solution don't work.
Here a workaround:
Use the {NAV_TABLE_COLUMN:X} Replacement-Tag to show only your "Main-Menue"
+Home
..+MainMenue <-- show only this section
......+Entry1
......+Entry2
......+etc
..+Search <- never shown in menu now
..+Sitemap <- never shown in menu now
Thanks to cwenet for this hint!
**********
Bei allen, wo die oben beschriebene Lösung nicht funktioniert hat, hier ein super Workaround:
Einfach das Menü aufteilen und nicht mehr das ganze Menü anzeigen.
Mit dem Replacement-Tag {NAV_TABLE_COLUMN:X}
zum Beispiel:
+Home
..+Hauptmenü <-- nur die Einträge ab diesem Punkt zeigen
......+Eintrag1
......+Eintrag2
......+etc
..+Suche <- wird nie im Menü angezeigt
..+Sitemap <- wird nie im Menü angezeigt
Danke auch an cwenet für den Tip!
For all where this solution don't work.
Here a workaround:
Use the {NAV_TABLE_COLUMN:X} Replacement-Tag to show only your "Main-Menue"
+Home
..+MainMenue <-- show only this section
......+Entry1
......+Entry2
......+etc
..+Search <- never shown in menu now
..+Sitemap <- never shown in menu now
Thanks to cwenet for this hint!
**********
Bei allen, wo die oben beschriebene Lösung nicht funktioniert hat, hier ein super Workaround:
Einfach das Menü aufteilen und nicht mehr das ganze Menü anzeigen.
Mit dem Replacement-Tag {NAV_TABLE_COLUMN:X}
zum Beispiel:
+Home
..+Hauptmenü <-- nur die Einträge ab diesem Punkt zeigen
......+Eintrag1
......+Eintrag2
......+etc
..+Suche <- wird nie im Menü angezeigt
..+Sitemap <- wird nie im Menü angezeigt
Danke auch an cwenet für den Tip!