Skip to main content

Hook

Get data from the hook table.
{loop type="hook" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
activeIf the hook is active or not*
codeThe hook code
excludeA single or a list of hook ids to exclude
hook_typeThe type of hook
orderSee Order possible valuesidorder='code'

Plus the global arguments

Outputs

VariableValue
$ACTIVEIf the hook is active or not
$BLOCKThe [block] column value
$BY_MODULEThe value of the bt module field
$CHAPOChapo
$CODEThe hook code
$DESCRIPTIONThe hook description
$IDThe hook ID
$IS_TRANSLATEDCheck if the hook is translated
$LOCALEThe locale user for this loop
$NATIVENaive
$POSITIONThe hook position
$TITLETitle
$TYPEType

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha_reverseorder by column "i18n_TITLE"
codecode_reverseCode
enabledenabled_reverseEnabled
idid_reverseID
manualmanual_reverseBy position considering a given category, category argument must be set
nativenative_reverseBy native column