Skip to main content

Feature

Feature loop lists features.
{loop type="feature" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
excludeA single or a list of feature ids to exclude.exclude="456,123"
exclude_templateA single or a list of template ids. Only features NOT attached to these templates will be returned.id="2", id="1,4,7"
idA single or a list of feature ids.id="2", id="1,4,7"
langA lang idlang="1"
orderA list of values see sorting possible valuesmanualorder="alpha_reverse"
productA single or a list of product ids.id="2", id="1,4,7"
templateA single or a list of template ids. Only features attached to these templates will be returned.id="2", id="1,4,7"
titleA a string titletitle="foo"
visibleA boolean value.yesvisible="no"

Plus the global arguments

Outputs

VariableValue
$CHAPOthe feature chapo
$DESCRIPTIONthe feature description
$IDthe feature id
$IS_TRANSLATEDcheck if the feature is translated
$LOCALEThe locale used for this research
$POSITIONIf none of the product, template or exclude_template parameter is present, $POSITION contains the feature position. Otherwise, it contains the feature position in the product template context.
$POSTSCRIPTUMthe feature postscriptum
$TITLEthe feature title

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha-reversetitle
manualmanual_reverseposition