Hiding folders in navigation menu

Author Message

Vivienne van Velzen

Thursday 24 April 2003 5:24:51 am

After ploughing through the forum and not finding a solution I decided to ask for help ;)

My situation is as follows. I've placed a navigation menu on the left side of my site, that shows the top-folders and one level lower (i.e. mycompany, mycompany->news, etc).
The top-folders all have a different section assigned to them with their own template (primarily colorscheme changes here). The subfolders have the same section assigned as their parent, so they have the same colorscheme.
Now I want to hide the mycompany->news link. I can't limit my fetch on section, because there are more folders with this section that I DO want to show. Same with classes. This also excludes the possibility to use roles to hide the folder (which I didn't want to do anyway).
Quite a long story to lead to my question: Isn't there some checkbox with which you can hide certain elements from the visitors to your site (sort of an active/non-active option)? Or an attribute that can be checked on?

TIA,

Vivienne

Paul Borgermans

Thursday 24 April 2003 9:08:41 am

>Quite a long story to lead to my question: Isn't there some
>checkbox with which you can hide certain elements from the
>visitors to your site (sort of an active/non-active option)? Or an
>attribute that can be checked on?

Yes, you can check on attributes, not the directly in the fetch function, but in a loop on the fetch results and display or do something else with it. You may need to extend the classes with such an attribute.

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Vivienne van Velzen

Friday 25 April 2003 4:39:59 am

Thanks Paul,

I added a 'visible' attribute to the items which I wanted to check on and it works like a charm.
Greetz,

Vivienne

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:02:27
Script start
Timing: Jan 18 2025 05:02:27
Module start 'layout'
Timing: Jan 18 2025 05:02:27
Module start 'content'
Timing: Jan 18 2025 05:02:27
Module end 'content'
Timing: Jan 18 2025 05:02:27
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9375152.6250
Module start 'layout' 0.00590.0034 740.562539.4453
Module start 'content' 0.00930.0053 780.007889.3359
Module end 'content' 0.01460.0025 869.343834.3047
Script end 0.0171  903.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002917.1309140.0002
Check MTime0.00137.4161140.0001
Mysql Total
Database connection0.00094.997810.0009
Mysqli_queries0.002816.157530.0009
Looping result0.00000.111210.0000
Template Total0.001911.110.0019
Template load0.00126.770910.0012
Template processing0.00074.327610.0007
Override
Cache load0.00084.502810.0008
General
dbfile0.00021.390680.0000
String conversion0.00000.057040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs