3.8. OPT attributes
3.8.2. opt:attributes-ignore
3.8.1. opt:attributes-build
« Previous
3.8.3. opt:capture
Next »

3.8.2. opt:attributes-ignore

Versionssince 2.0.1

The attribute is used to specify the list of ignored attributes for opt:attributes-build.

<div opt:attributes-build="$attributeList" opt:attributes-ignore="$ignoreList">
    ...
</div>

The ignored attribute list can be provided either as a container of names or a string in the format:

name1, name2, name3

The following script generating the data for the code above will produce the following result:

$view->attributeList = array(
    'attr1' => 'value1',
    'attr2' => 'value2',
    'attr3' => 'value3'
);
$view->ignoreList = array(
    'attr2'
);

Result:

<div attr1="value1" attr3="value3">
    ....
</div>

See also:

3.8.2. opt:attributes-ignore
3.8. OPT attributes
« Previous
3.8.1. opt:attributes-build
Next »
3.8.3. opt:capture