Simplifying list fetch

Author Message

Jan Borsodi

Sunday 27 July 2003 10:47:38 am

I suggest a new module for creating list fetches. The module will be able to define one or more fetches with a name and an identifier.
The identifier can then be used in the fetch operator to execute the fetch definition. This means that you can easily reuse a defined fetch and have a central place to change it at a later time, and it will also make it much easier to figure out how a fetch works. A typical fetch would then be:
{fetch(newslist)}

The process of defining a list fetch would be to select among the defined fetch functions in the modules. Each fetch function has a number of parameters, some are required and some are optional.
To make this really easy to use the fetch function definitions would have to be improved by adding information about what types the parameters are.
The types can be defined as integer, float, array or a specific class etc. For arrays it should be possible to define the type of the elements.
When the type definition is in place the web interface could either show a list possible values using a dropdown (for instance for a class selection) or use the content browse functionality (for content objects and nodes).

After the choices are made you would then be able to get an example listing to see how the fetch would work in practice.

This will also open up the possiblity for exporting/importing defined fetches.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paul Borgermans

Sunday 27 July 2003 1:45:42 pm

Interesting idea Jan,

It boils down to a user-friendly RAD tool too!

But could you explain the design-advantage over creating template snippets which can be included (and can take some additional arguments to make them more flexible)?

I noticed including templates in other templates results in a performance overhead. Would that be more efficient with a new module?

Regards

-paul

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

Thomas Brandl

Monday 28 July 2003 1:50:32 am

Yep, anything that contributes to user friendliness is warmly welcome! ;)

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 10:16:28
Script start
Timing: Jan 18 2025 10:16:28
Module start 'layout'
Timing: Jan 18 2025 10:16:28
Module start 'content'
Timing: Jan 18 2025 10:16:29
Module end 'content'
Timing: Jan 18 2025 10:16:29
Script end

Main resources:

Total runtime0.6640 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9063152.6250
Module start 'layout' 0.00620.0050 740.531339.4453
Module start 'content' 0.01120.6516 779.9766575.5469
Module end 'content' 0.66280.0012 1,355.523412.1719
Script end 0.6640  1,367.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4835160.0002
Check MTime0.00130.1979160.0001
Mysql Total
Database connection0.00100.156210.0010
Mysqli_queries0.608691.6543590.0103
Looping result0.00080.1167570.0000
Template Total0.625994.320.3130
Template load0.00190.292920.0010
Template processing0.624093.967620.3120
Template load and register function0.00010.021110.0001
states
state_id_array0.00100.146110.0010
state_identifier_array0.00100.145720.0005
Override
Cache load0.00170.2592230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.129030.0003
Fetch class attribute name0.00150.223750.0003
XML
Image XML parsing0.00240.361030.0008
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00300.4517240.0001
String conversion0.00000.001540.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs