Create content

Learn how to create data-driven content

Each document (container or item) can have content, i.e. a list of content blocks which is shown in the content layout mode. Currently, the following content types are supported:

  • HTML fragment
  • RDF Linked Data resource
  • SELECT query (rendered as a container)
  • chart

Content other than HTML content is called resource content. The HTML content is part of the document while resource content is simply embedded (transcluded) into the HTML page.

There are 2 ways to create content: inline editing and edit mode.

Inline editing

Inline editing allows to manage content blocks without leaving the content layout mode.

To create new content, follow these steps:

  1. Make sure you're in the content layout mode
  2. At the bottom of the content list, click one of the two buttons:
    • Resource in order to create resource content
    • HTML in order to create HTML content
  3. In the case of HTML, add content in the WYSIWYG editor
  4. In the case of URI resource, start typing its label and select the resource from the dropdown, or paste its URI into the input
  5. Click the Save button to save the content

To edit content, follow these steps:

  1. Click the edit button on the top-right of a content block
  2. In the case of HTML, add content in the WYSIWYG editor
  3. In the case of URI resource, start typing its label and select the resource from the dropdown, or paste its URI into the input

To remove content, follow these steps:

  1. Remove the content resource
  2. Remove the property that connected it to the document

Edit mode

This method requires switching the whole document into edit mode, but it is more general as it treats the content blocks as regular RDF resources.

To create content and add it to the document in edit mode, follow these steps:

  1. Click the button in the action bar to open the editing form for the current document
  2. Scroll to the end of the form and click the Content creation button
  3. In the dropdown next to Value you can toggle between resource content and HTML content
  4. In the new content fieldset that appears, fill out these fields:
    Value
    In the case of HTML, add content in the WYSIWYG editor
    In the case of URI resource, start typing its label and select the resource from the dropdown, or paste its URI into the input
    The heading of the block shows the content identifier (a blank node when creating, a URI when editing).
  5. Link the content to the document resource using RDF sequence properties rdf:_1, rdf:_2 etc. The property URI depends on the index (position) of the content in the content list; you can add new sequence properties using a dropdown at the bottom of the fieldset. If the content is first on the list, the steps are as follows:
    _1
    Click the input field and select the content's blank node identifier from the dropdown, or paste its URI if it already has one.
  6. Click Save at the bottom of the form to submit it

To remove content, follow these steps:

  1. remove the content resource
  2. remove the property that connected it to the document

Read more about content management.