Docs > Tags > group

The <content:group> tag allows you to group content and formatting. There are two ways in which this is useful.

If no content is supplied for any of the content tags in the group, then the entire group will be suppressed when the page is published.

Also, if an author links a group to another page, then the page editor will automatically attempt to populate the contents of the group with values from the linked page, matching by id or name.

Example

This example shows how markup can be suppressed if no value is supplied for a content tag.
<content:group>
<p>Date: <content:date id="optionaldate"/></p>
</content:group>
Everything within the <content:group> tags will be output if the <content:date> has a value. But if the date is left blank, nothing is output.

Can't find what you're looking for?

Let us know and we'll see if we can help.