Overview video
0:00 Boilerplate HTML for custom content templates
0:04 Here's a shortcut for writing custom content templates. Instead of starting from a blank page, you let the content template editor write the HTML for you.
0:15 First, the layout is built with the standard content template editor, using sample text.
0:21 Switching the page to the code editor shows the HTML that was generated, with all the right classes.
0:29 That HTML is pasted into a new content template, and the sample text is swapped for placeholders.
0:36 Editors fill in a simple form, and the page looks just like the layout you built.
0:42 The step-by-step guide on this page walks through each stage.
Step-by-step video
0:00 Generate boilerplate for a custom content template
0:04 In this tutorial we'll use the content template editor to write the HTML for a custom content template. You'll need to be comfortable with HTML, and you should use a spare content page.
0:16 On a spare content page, use the Content Template Editor to build the layout you want, with sample text, and style it with the settings. Then click Save and Continue Edit. The HTML is generated when you save.
0:30 Change the Body editor type to Code Mirror Editor, and confirm with Yes.
0:36 The code editor now shows the HTML for your layout. Select it all and copy it.
0:42 Go to Content Management, then Content Templates, and click Add new. Give it a name, tick Enabled, and click Save and Continue Edit.
0:51 Paste the HTML into HTML Markup. Replace the sample text with placeholders in percent signs, such as Heading and Text. Keep the generated classes as they are.
1:03 Click Add new field for each placeholder. Use the same name, and pick a field type, such as Textbox for a heading or TextArea for longer text. Then save the template.
1:14 On the Settings tab, tick where the template can be used. Here, Content Page. Save again.
1:20 Now, on any content page, choose your template under Select your Content Template, fill in the fields, and save.
1:28 The page looks just like the layout you built, and editors only had to fill in a form.
1:34 That's it. Remember to save before switching editors, and to save the template after adding fields.
No lines in the transcript match your search.