Attributes

The attributes an automation command takes, grouped by the command they sit on. An attribute allowed on more than one command is listed under each. Type is the value kind or the fixed set of values it accepts; whether it is required is said in the description. Every attribute name is a record in the reference search.

By command

AttributeTypeDescription
sitehoster:duplicate
nametextRequired. Ties a master to its copies; use different names for independent blocks.
rolemaster · copyRequired. Whether this block is the source you edit or a generated copy.
sitehoster:navigation
nametextRequired. Ties a navigation master to its copies.
rolemaster · copyRequired. Whether this navigation is the source you edit or a generated copy.
activea keyRequired. The key of the item to highlight on this page.
sitehoster:navigation-item
keytextRequired. Identifies the item; a copy’s active matches it.
sitehoster:record
collectiontextRequired. The collection this record joins; other pages list and count by it.
sitehoster:record-field
nametextRequired. The field name, used as {{name}} and in filters, sorts and groups.
typea field typeOptional. One of the field types (default auto).
valuetextOptional. The value, kept verbatim; omit it to use a fenced ``` block instead.
sitehoster:listing
collectiontextRequired. The collection to pull records from.
sitehoster:listing-filter
fielda field nameRequired. The record field to test.
opan operationRequired. How to compare the field to the value.
valuetextRequired. The value to compare against.
sitehoster:listing-sort
fielda field nameRequired. The field to order by.
orderasc · descRequired. The direction: asc lowest first, desc highest first.
sitehoster:listing-group
bya field nameRequired. The field to group on.
usinga field nameOptional. The field that sorts within each group.
orderasc · descOptional. The sort direction within each group.
startintegerOptional. How many to skip within each group (default 0).
countintegerOptional. How many to keep from each group, a maximum (default 1).
sitehoster:listing-limit
startintegerHow many records to skip (the offset); start and/or count is required.
countintegerHow many records to render; start and/or count is required.
sitehoster:count
collectiontextRequired. The collection to count.
sitehoster:count-filter
fielda field nameRequired. The record field to test.
opan operationRequired. How to compare it, using the same operators as a listing filter.
valuetextRequired. The value to compare against.
sitehoster:count-group
bya field nameRequired. The field to group on before counting.
usinga field nameOptional. The field that sorts within each group.
orderasc · descOptional. The sort direction within each group.
startintegerOptional. How many to skip within each group (default 0).
countintegerOptional. How many to keep from each group (default 1).

Templates such as listing-item, listing-heading, count-message and the filter-any groups take no attributes; they carry a fenced ``` body instead. See the automation pages for each in full.