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:
- Make sure you're in the content layout mode
- 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
- 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
- Click the Save button to save the content
To edit content, follow these steps:
- Click the edit button on the top-right of a content block
- 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
To remove content, follow these steps:
- Remove the content resource
- 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:
- Click the button in the action bar to open the editing form for the current document
- Scroll to the end of the form and click the Content creation button
- In the dropdown next to Value you can toggle between resource content and HTML content
- 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
- 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.
- Click Save at the bottom of the form to submit it
To remove content, follow these steps:
- remove the content resource
- remove the property that connected it to the document