XHTML/Data Definition Blocks
Overview
An XHTML/Data Definition block is a reusable block of content that provides a rich word processing (WYSIWYG) interface or Data Definition form fields for editing content. Unlike a text block, an XHTML block allows for a wide range of HTML elements to be created inside of its editing environment extending to items such as images, links, tables, and bullet points in addition to other standard text formatting.
XHTML/Data Definition blocks are particularly useful for fixed regions of content such as headers and footers that need to stay constant among all pages within the site. A single change to one of these blocks will be present across all pages of the site that make use of the block.
Creating an XHTML/Data Definition Block
To create an XHTML/Data Definition block:
- Click Add Content > Default > Block.
- Select XHTML/Data Definition and click Choose.
- In the Name field, enter a name for your block.
- In the Placement Folder field, choose the folder where the block should be created.
- Enter content into the WYSIWYG field, or add a Data Definition if desired.
- Click Preview Draft and Submit.
Adding a Data Definition
Data Definitions can be added to XHTML blocks to provide a standardized structure to content added to a Cascade CMS page. For example, a contact section with a phone number field, address field, and an email address field could be built as part of a Data Definition and those fields could be reused across pages as a block.
To add a Data Definition to an XHTML/Data Definition block:
- Select the Properties tab.
- With the Data Definition chooser, select a Data Definition and click Choose.
- Select the Content tab to resume editing within the Data Definition structure.
- Click Preview Draft and Submit.