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.