Page 1 of 1
{NAV_ROW} frontend menu status
Posted: Fri 12. Aug 2005, 12:38
by blutch
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
Posted: Mon 15. Aug 2005, 11:14
by jscholtysik
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...
![Sad :-(](./images/smilies/icon_sad.gif)
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
Posted: Tue 16. Aug 2005, 09:06
by blutch
Hello, I would like to adress the issue ones more, in the hope that somebody will help us out on his one!
Posted: Tue 16. Aug 2005, 09:54
by jscholtysik
Hi blutch,
I will write an email to Oliver Georgi concerning this bug.
Joachim
Posted: Tue 16. Aug 2005, 10:48
by blutch
jscholtysik wrote:Hi blutch, I will write an email to Oliver Georgi concerning this bug. Joachim
Tnx a lot, appreciate it.
Posted: Tue 16. Aug 2005, 16:08
by jscholtysik
Hi blutch,
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]))) {
There is a commented line:
Code: Select all
//if($GLOBALS['content']['struct'][$key]["acat_struct"] ==
$act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct']
[$key]['acat_hidden']) {
uncomment it and comment the following lines:
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]))) {
and you're done!!
Have fun and thanks to Oliver Georgi for the prompt response...
Joachim
Posted: Wed 17. Aug 2005, 09:38
by Paradroid
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
Posted: Thu 18. Aug 2005, 08:57
by spuutum
I have the same problem with {NAV_TABLE_COLUMN} tag.
Posted: Thu 18. Aug 2005, 15:14
by blutch
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:
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]))) {
What you have to do now is very simple. "Uncomment" the following line by removing the two slashes //:
Code: Select all
//if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct'][$key]['acat_hidden']) {
"Comment" the following lines by placing two slashes // before them::
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]))) {
You're new code should look as follows:
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!
Posted: Mon 10. Oct 2005, 20:26
by MPerio
(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!