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.