How to completely hide menu-item in site structure?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Gino Bonetti
Posts: 22
Joined: Wed 26. Oct 2005, 23:06

How to completely hide menu-item in site structure?

Post by Gino Bonetti »

Hi all,

I'm not that experienced in using phpwcms. So you guys can maybe solve my problem quite easyily.

Here we go:
I put several articles in a certain menu, e.g "Photos" which is a submenu of "Photo-Collection" or whatever in my site-structure. I hide that submenu so it is not shown in the navigation. If I add an "article menu" for "Photos" in "Photo-Collection" the submenu "Photos" suddenly re-appears under "Photo-Collection" in the main-navigation the moment I click an item in the article-menu. Shouldn't the submenu-item remain invisible even if I click an item contained in the corresponding article-menu?

Is this normal? What am I doing wrong?

Thanks for your help!
User avatar
Oliver Georgi
Site Admin
Posts: 9911
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

This is normal and not normal. There is a setting in template_default where you can enable/disable method of handling.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
webnet
Posts: 4
Joined: Thu 17. Nov 2005, 16:12

How to completely hide an article from the menu?

Post by webnet »

Hello,
On my page I have exaclty the same problem:

The structure item "search" is normally hidden in the menu. But when I execute the searchpage content with a form, then the search results are displayed, but also the "search" item is displayed in the menu.

Why pops a hidden structure item in the menu when a article/content in this structure is displayed.

Is there a way to completely hide menu items?

Thank you for any input.

--
Stefan
User avatar
Oliver Georgi
Site Admin
Posts: 9911
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

this hidden is no hidden as expected. Check template_default - there is a setting. Otherwise put it in a site structure located outside the "visible" one.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Just a quick tip for monitoring what the user will or will not see is:
01. Open two different browsers, eg: FireFox and Opera
02. In FireFox: login and edit as needed, your visibility options for:
Structure (Categories) / Pages (Articles) / Pages' Content Parts (Articles' Content Parts)
03. In Opera: simply vistit the site and check around

Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
webnet
Posts: 4
Joined: Thu 17. Nov 2005, 16:12

Post by webnet »

Double checked again template_default, but excepting the variable for only highlighting only the current article (and not the parents too) I could not find a variable for hidding structure items.

Maybe somebody has a hint for a workaround?
The site link: http://www.stegger.ch/phpwcms/index.php

As soon as you execute a search with the search form, the searchresult content will be displayed but also the hidden menu strucutre "search". This might be confusing for the visitor of the site.

I have aready tried several <form action="index.php?id=16,0,0,1,0,0"... variances. With id, with alias with index.php?search -> always results as described above.
Has sombody maybe realized a search form with a hidden search content?

Thanky you for any feeback.

--
Stefan
cwenet
Posts: 159
Joined: Sat 24. Jul 2004, 10:21
Location: Lake Of Constance, Germany

Post by cwenet »

Perhaps try this:

config\phpwcms\conf.template_default.inc.php

$template_default["nav_table_struct"]["show_active_hidden"] = 0;

Christoph
User avatar
Oliver Georgi
Site Admin
Posts: 9911
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

but only in newer releases.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
webnet
Posts: 4
Joined: Thu 17. Nov 2005, 16:12

Post by webnet »

Currenty using 1.2.d-DEV, but also putting...
$template_default["nav_table_struct"]["show_active_hidden"] = 0;
...did not change anything.

In the meantime I am testing a possible workaround, even if I am not completely happy with it:

Set up the following structure:
->home
----> visible
--------> Link1
--------> Link2
--------> Link3
--------> etc
----> searcharticle

then put in the template {NAV_TABLE_COLUMN:2} and maybe also {BREADCRUMB:2}, then only link1, link2, link3, etc will be displayed in the nav_table menu.
Does anybody know, in which file the select statement for the site structure is placed? Then, if the "hidden" tick is put in a strucutre item I think it should remain hidden in every situation.

--
Stefan
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi Stefan,

what release do you use?
I think this setting is included since 1.2.5DEV.
Please update to 1.2.6CVS.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
webnet
Posts: 4
Joined: Thu 17. Nov 2005, 16:12

Post by webnet »

Sorry, typing mistake in my former post.
Currently using 1.2.5DEV.
Thank you for the hint Knut, will check out 1.2.6CVS.

--
Stefan
Post Reply