ModelCommon module
CollectionElement
A model in the Common module, with 14 members for templates, 11 API properties and 14 members for admin templates.
Templates view
Properties 14
Take no arguments.
-
#
isLocal() -
bool - Checks whether the collection element is local. Also returns false for empty collection elements.
-
#
isGlobal() -
bool - Checks whether the collection element is global. Also returns false for empty collection elements.
-
#
getId() -
?int -
#
getPosition() -
?int -
#
getComponent() -
?Component - Retrieve the component for the collection. In the frontend, this method also delivers global components.
-
#
getGlobalComponent() -
?GlobalComponent -
#
getContainer() -
?Model -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 11
Read-only values on the record.
-
#
local -
bool - Checks whether the collection element is local. Also returns false for empty collection elements.
-
#
global -
bool - Checks whether the collection element is global. Also returns false for empty collection elements.
-
#
id -
?int -
#
position -
?int -
#
globalComponent -
?GlobalComponent -
#
container -
?Model
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 14
Take no arguments.
-
#
isLocal() -
bool - Checks whether the collection element is local. Also returns false for empty collection elements.
-
#
isGlobal() -
bool - Checks whether the collection element is global. Also returns false for empty collection elements.
-
#
getId() -
?int -
#
getPosition() -
?int -
#
getGlobalComponent() -
?GlobalComponent -
#
getContainer() -
?Model -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.