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
|