two menus: double top menu and footer menu

Author Message

Alexandre Cunha

Friday 21 July 2006 5:55:11 pm

Hi,

I want define a double top menu and a footer menu

-- Site
  |--- folder A
  |--- folder B
  |--- folder C
.....
  |--- folder N
  |--- folder M
  |--- folder O
 

I what show on the double top menu, the options "folder A", "folder B", "folder C"
and what show on the footer menu, the options "folder N", "folder M", "folder O"

How can accomplish this ?

Thanks for your help.

http://AlexandreCunha.com

Marcin Drozd

Saturday 22 July 2006 12:56:05 am

Hi
I think I have some options:
1. create two classes (like folder): F1 (for top menu) and F2 (for bottommenu) and use class filter in fetch
2. create two section: S1 (for folder A ... C) and S2 (for folder N...O)
3. set priority from 1 to 99 (for folder A ... C) and from 101 (for folder N...O) and (in fetch) use sort_by, array(priority,true()) and
'attribute_filter', array( array( 'priority', '<', '100' ) ) for folder A ... C
or
'attribute_filter', array( array( 'priority', '>', '100' ) ) for folder N...O
4. something else, but I haven't got an idea

http://ez-publish.pl

Alexandre Cunha

Tuesday 25 July 2006 4:42:29 am

'attribute_filter', array( array( 'priority', '<', '100' ) ) 

Thank you, this solution is perfect !

By the way, I have use attribute_filter and not 'attribute_filter'

http://AlexandreCunha.com

Alexandre Cunha

Tuesday 25 July 2006 3:32:07 pm

Hi again

In this sample

sort_by, array(priority,true()),
attribute_filter, array( array( 'priority', '>',  '10' ) ) ,
attribute_filter, array( array( 'priority', '<', '100' ) ) 

I get content with priority lower than 10.

How can I improve this ?

thanks

http://AlexandreCunha.com

Marcin Drozd

Wednesday 26 July 2006 12:35:49 am

Hi
I think it should be:

sort_by, array(priority,true()),
'attribute_filter', array( 'and',
                 array( 'priority', '>', '10' ),
                 array( 'priority', '<', '100' ) )

Is it what U want?
see example 13 on http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

http://ez-publish.pl

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 31 2025 04:20:01
Script start
Timing: Jan 31 2025 04:20:01
Module start 'layout'
Timing: Jan 31 2025 04:20:01
Module start 'content'
Timing: Jan 31 2025 04:20:02
Module end 'content'
Timing: Jan 31 2025 04:20:02
Script end

Main resources:

Total runtime1.5773 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.2656151.2266
Module start 'layout' 0.00750.0038 739.492236.6797
Module start 'content' 0.01131.5653 776.1719921.3672
Module end 'content' 1.57660.0008 1,697.539111.8125
Script end 1.5773  1,709.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2004160.0002
Check MTime0.00130.0799160.0001
Mysql Total
Database connection0.00150.093710.0015
Mysqli_queries1.518696.2787630.0241
Looping result0.00060.0372610.0000
Template Total1.520796.420.7603
Template load0.00230.148620.0012
Template processing1.518396.258620.7592
Template load and register function0.00150.097410.0015
states
state_id_array0.00240.153010.0024
state_identifier_array0.00180.113720.0009
Override
Cache load0.00160.1032370.0000
Sytem overhead
Fetch class attribute can translate value0.00060.041220.0003
Fetch class attribute name0.00200.129850.0004
XML
Image XML parsing0.00030.022020.0002
class_abstraction
Instantiating content class attribute0.00000.000650.0000
General
dbfile0.00320.2015100.0003
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs