Path

ez.no / documentation / ez publish / technical manual / 3.6 / reference / modules / class / fetch functions / override_template_list


This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

override_template_list

Summary

Fetches the override rules associated with a class.

Usage

fetch( 'class', 'override_template_list', hash( 'class_id', class_id ) )

Parameters

NameTypeDescriptionRequired
class_id integer The ID number of the target class. Yes.

Returns

An array of hashes containing information about the override rules.

Description

This function fetches the override rules that are associated with the class specified by the "class_id" parameter. The function returns an array of hashes. Each element of the returned array contains the following structure:

Attribute

Type

Description

siteaccess

string

The siteaccess that the override belongs to.

block

string

The name of the override block.

source

string

The path to the original template.

target

string

The path to the override template.

Examples

Example 1

{def $overrides=fetch( 'class', 'override_template_list', hash( 'class_id', 13 ) )}
 
{foreach $overrides as $override}
 
    {$override.target} - ({$override.source}) <br />
 
{/foreach}

Outputs information about the overrides for class number 13.

Balazs Halasy (01/06/2004 7:00 pm)

Balazs Halasy (29/04/2005 10:16 am)


Comments

There are no comments.