A fetch alias provides for a custom fetch based on configuration settings. One could make use of default fetch alias settings and create your own to custom eZ Publish well with the least amount of changes to the system.
You can alter the conditions of a fetch alias used by default within eZ Publish. This provides for changing the conditions of a site fetch using settings modifications. It also provides for moving all your fetches out of template into one location as settings. With your fetches in settings you do not need to customize templates to make modifications.
Here is an example of the settings for a reference of the default fetches available within the default settings of eZ Publish.
Settings File: settings/override/fetchalias.ini.append.php
# Fetch article comments [comments] Module=content FunctionName=list Constant[sort_by]=published;0 Parameter[parent_node_id]=parent_node_id Constant[class_filter_type]=include Constant[class_filter_array]=comment
Template File: extension/ezwebin/design/ezwebin/override/templates/full/article.tpl
{foreach fetch_alias( comments, hash( parent_node_id, $node.node_id ) ) as $comment} {node_view_gui view='line' content_node=$comment} {/foreach}
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish Community Project 4.2011
Hosted by Swiss eZ Publish partner YMC