Skip to main content

Global arguments

These arguments can be set on all loops

ArgumentDescriptionDefaultExample
backend_contextDetermine if loop is use in backend context.nobackend_context="on"
force_returnforce return result for i18n tables even if there is no record.noforce_return="on"
langFor internationalizable loops only. Thelia automatically manages the language, but this lang identifier can force a particular one.lang="1"
limitThe maximum number of results to display.PHP_INT_MAXlimit="10"
name *The loop name. This name must be unique and is used to reference this loop.name="my_name_loop"
no-cachenono-cache="no"
offsetThe first product to display offset. Will not be used if page argument is set.0offset="10"
pageThe page to display.page="2"
return_urlA boolean value which allows the urls generation. yesreturn_url="no" 
type