How to fetch articles with select field?

Author Message

scrieler _

Tuesday 25 September 2007 7:43:25 am

Hi eZ community,

i wanna have a select field to sort by price and others,
but i dont know how and where. i have to include a fetch funktion, i know,
but where?

mfg mm

Felix Laate

Tuesday 25 September 2007 2:53:49 pm

Hi there,

this could be done either the AJAX way with e.g. http://ez.no/developer/contribs/applications/xajax or you could reload the page with a certain variable set and make a fetch based on that.

Or perhaps you could do a brutal fetch, pass it to a set of javascript arrays and then, based on your select, filter that.

Hope that made sense..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

scrieler _

Wednesday 10 October 2007 12:04:51 am

Thx Felix!

I installed xajax and the hello world script, but if i click on the button i get a alert window with errors... can anybody help me?

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 20 2025 03:26:17
Script start
Timing: Jan 20 2025 03:26:17
Module start 'layout'
Timing: Jan 20 2025 03:26:17
Module start 'content'
Timing: Jan 20 2025 03:26:18
Module end 'content'
Timing: Jan 20 2025 03:26:18
Script end

Main resources:

Total runtime1.0327 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2734152.6406
Module start 'layout' 0.00600.0034 741.914139.4766
Module start 'content' 0.00951.0219 781.3906527.9219
Module end 'content' 1.03140.0012 1,309.31258.1250
Script end 1.0326  1,317.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3086160.0002
Check MTime0.00130.1271160.0001
Mysql Total
Database connection0.00080.072610.0008
Mysqli_queries0.985095.3875570.0173
Looping result0.00040.0407550.0000
Template Total1.000696.920.5003
Template load0.00200.194820.0010
Template processing0.998696.699420.4993
Template load and register function0.00020.015010.0002
states
state_id_array0.00120.116810.0012
state_identifier_array0.00110.109820.0006
Override
Cache load0.00160.1585180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.057220.0003
Fetch class attribute name0.00160.151340.0004
XML
Image XML parsing0.00080.081720.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00090.0877160.0001
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs