Filter Objects on Criteria

Author Message

Mohammad Tufail

Friday 30 May 2008 1:20:14 am

Hi,

I want to include a module just like http://ez.no/partner/worldwide_partners . I have no idea how to filter objects of a specific class. Also the selection boxes should be dynamic so that i can include the options later.

if possible please give me complete detail how to setup the classes for this module and more.

Quick response will be highly appreciated.

Thanks :-)

Maxime Thomas

Monday 02 June 2008 12:03:08 pm

Hi,

As I know, there's no modules in order to do the partner filtering. Only template code :

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

Look to attribute filter and sort by.

To do this, make an override of the parent content of all your "partner" content and make a big fetch with all the parameters passed throught the view parameter.

http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_pagelayout/variables_in_pagelayout

Hope it will help.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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

Main resources:

Total runtime0.0301 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 589.2656151.2109
Module start 'layout' 0.00420.0038 740.4766220.6875
Module start 'content' 0.00800.0202 961.1641997.6953
Module end 'content' 0.02810.0019 1,958.859429.9922
Script end 0.0300  1,988.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00289.3676140.0002
Check MTime0.00103.4517140.0001
Mysql Total
Database connection0.00062.057610.0006
Mysqli_queries0.00206.788530.0007
Looping result0.00000.033310.0000
Template Total0.00144.510.0014
Template load0.00103.420810.0010
Template processing0.00031.087410.0003
Override
Cache load0.00072.383310.0007
General
dbfile0.003912.947780.0005
String conversion0.00000.023840.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