Forums / Suggestions / Simplifying list fetch

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! ;)

eZ debug

Timing: Jan 18 2025 04:11:14
Script start
Timing: Jan 18 2025 04:11:14
Module start 'content'
Timing: Jan 18 2025 04:11:14
Module end 'content'
Timing: Jan 18 2025 04:11:14
Script end

Main resources:

Total runtime0.6397 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 594.6953180.8438
Module start 'content' 0.00930.4810 775.5391580.6250
Module end 'content' 0.49040.1492 1,356.1641334.5625
Script end 0.6396  1,690.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6340210.0002
Check MTime0.00150.2379210.0001
Mysql Total
Database connection0.00130.204010.0013
Mysqli_queries0.568988.94451960.0029
Looping result0.00210.32981940.0000
Template Total0.600493.920.3002
Template load0.00220.337020.0011
Template processing0.598293.515820.2991
Template load and register function0.00010.014110.0001
states
state_id_array0.00290.451810.0029
state_identifier_array0.00180.285020.0009
Override
Cache load0.00180.2794230.0001
Sytem overhead
Fetch class attribute can translate value0.00150.226740.0004
Fetch class attribute name0.00130.196950.0003
XML
Image XML parsing0.00160.252840.0004
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00260.4026350.0001
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs