Tutorial: A very basic website - Add a second content block
Tutorial: A very basic website - Add a second content block
Often your template needs more content blocks. For example if you have a two column layout. You can then offer an editor two separate text fields; one for each column.
Steps
Open Design Manager (Templates tab click the Basic demo - 1 template.
→ ). On theReplace the code in the Template Content field:
<!doctype html>
<html>
<head>
<title>Basic demo</title>
</head>
<body>
{content}
<hr>
{content block='content2' label='Second content block'}
</body>
</html>
the template
Open Content Manager (Page 1. Note that a second content block is available now.
Type some text is this new content block: Content for second block. Then the page and refresh the home page (front end).
You should now see that the content of the second content block is added. It's separated by the horizontal like that was added to the page template too (<hr>)
Visuals
More info
Next
Next page: Tutorial: A very basic website - Add an image content block
Tutorial contents