Model·Sites module
Client
A model in the Sites module, with 6 members for templates, 3 API properties and 10 members for admin templates.
Templates view
Properties 6
Take no arguments.
-
#
isNewRecord()
Not in API & Jobs
-
bool
- Check if the record is a new record
-
#
isHierarchicalModel()
Not in API & Jobs
-
bool
- Check whether a model is a hierarchical model, i.e. can have children
-
#
isVersionedModel()
Not in API & Jobs
-
bool
- Check whether a model is versioned
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 3
Read-only values on the record.
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 10
Take no arguments.
-
#
isNewRecord()
Not in API & Jobs
-
bool
- Check if the record is a new record
-
#
isHierarchicalModel()
Not in API & Jobs
-
bool
- Check whether a model is a hierarchical model, i.e. can have children
-
#
isVersionedModel()
Not in API & Jobs
-
bool
- Check whether a model is versioned
-
#
getSitesCount()
Admin only
-
int
- Get the number of sites for this client.
-
#
getHateoasLinks()
Admin only
-
array
- Get the HATEOAS links for the record
-
#
getCreateChildUrl()
Admin only
-
?string
- Get the url for creating a child record.
-
#
getEditUrl()
Admin only
-
?string
- Get the url for editing the record.
No members match the filter.