Serialization groups¶
Roadiz CMS uses symfony/serializer to perform JSON serialization over any objects, especially Doctrine entities.
- id
- Serialize every entity
id. - timestamps
- Serialize every date-timed entity
createdAtandupdatedAtfields. - position
- Serialize every entity
positionfields. - color
- Serialize every entity
colorfields. - nodes_sources
- Serialize entities in a
NodesSourcescontext (all fields). - nodes_sources_base
- Serialize entities in a
NodesSourcescontext, but with essential information. - nodes_sources_documents
- Serialize documents linked to a
NodesSourcesfor each virtual field. - nodes_sources_default
- Serialize
NodesSourcesfields not contained in any group. - nodes_sources_``group``
- Custom serialization groups are created according to your node-typ fields groups.
For example, if you set a field to a
linkgroup,nodes_sources_linkserialization group will be automatically generated for this field. Be careful, Roadiz will use groups canonical names to generate serialization groups, it can mix_and-. - node
- Serialize entities in a
Nodecontext. - node_children
- Serialize Nodes with their
children. - node_attributes
- Serialize Nodes with their
attribute values. - node_listing
- Serialize Nodes and NodesSources with their
listing children options. AddslistingSortOptionsfield to node-sources, with for example{ "node.position": "ASC" }to be able to fetch children nodes in a the same order as in the back-office. If the current serialized node-source’ parent is hiding its children,listingSortOptionswill be contain parent’slistingSortOptionsinstead. - tag
- Serialize Tag.
- tag_base
- Serialize Tags with minimum information.
- tag_parent
- Serialize Tags with their
parent. - tag_children
- Serialize Tags with their
children, do not use withtag_parentgroup. - tag_documents
- Serialize Tags with their
documents. - tag_color
- Serialize Tags with their
colorfield. - tag_children_order
- Serialize Tags with their
children_orderfields. - node_type
- Serialize entities in a
NodeTypecontext. - attribute
- Serialize entities in a
Attributecontext. - attribute_documents
- Serialize documents linked to a
Attributefor each virtual field. - custom_form
- Serialize entities in a
CustomFormcontext. - document
- Serialize entities in a
Documentcontext. - document_display
- Serialize
Documentinformation required for displaying them. - document_private
- Serialize
Documentprivacy information - document_display_sources
- Serialize
Documentinformation required for displaying alternative sources (audio, video). - document_thumbnails
- Serialize
Documentfirst available thumbnail. - document_folders
- Serialize
Documentinformation required for displaying attached visible folders. - document_folders_all
- Serialize all
Documentattached folders, even not visible ones. - folder
- Serialize entities in a
Foldercontext. - translation
- Serialize entities in a
Translationcontext. - translation_base
- Serialize
Translationinformation required for displaying them. - setting
- Serialize entities in a
Settingcontext. - setting_group
- Serialize entities in a
SettingGroupcontext. - user
- Serialize entities in a
Usercontext. - user_group
- Serialize User entity with its groups.
- user_role
- Serialize User entity with its roles.
- user_personal
- Serialize User entity with its personal information.
- user_identifier
- Serialize User entity with its identifier (may be a personal information).