Learn how to create data-driven content

Creating an XHTML block and an object block

Each document (container or item) can have content, i.e. a list of blocks which is shown in the content layout mode. A block is one of two types:

XHTML
A fragment of XHTML that is embedded onto the page
Object
RDF URI resources that get transcluded into the page. Built-in resource examples:
Linked Data resource
Any URI that resolves to RDF data
View
A paginated result of a SPARQL SELECT query (a client-side counterpart of a container)
Chart
A result of a SPARQL query rendered as a chart

XHTML content is stored in the document itself; object content is transcluded into the page at render time.

XHTML blocks

Add block

To create a new XHTML block, follow these steps:

  1. Make sure you are in the content layout mode
  2. At the bottom of the page, click the XHTML button
  3. Add content in the rich-text editor
  4. Click the Save button to save the block

After this, a new XHTML block should be appended to the page, replacing the form.

Edit block

To edit an XHTML block, click anywhere inside it and make changes in place. The changes are saved automatically when the focus leaves the block — there is no separate save button.

Remove block

To remove an XHTML block, follow these steps:

  1. Hover over the block — controls appear in its top-right corner
  2. Click to remove the block

Object blocks

Add block

To create a new object block, follow these steps:

  1. Make sure you are in the content layout mode
  2. At the bottom of the page, click the Object button
  3. Fill out values in the form that appears: Value takes the URI of the object resource
  4. Click the Save button to save the block

After this, a new object block should be appended to the page, replacing the form.

Edit block

To edit an object block, follow these steps:

  1. Move the mouse to the very top-right of the block element where an editing button should appear
  2. Make changes in the editing form: Value takes the URI of the object resource
  3. Click Save at the bottom of the form to save the block

Remove block

To remove an object block, follow these steps:

  1. Hover over the block — controls appear in its top-right corner
  2. Click to remove the block

Read more about content blocks.