ibexa

Path

ez publish / technical manual / 3.9 / reference / modules / class / fetch functions / override_template_list


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

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 5:00 pm)

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


Comments

There are no comments.