Skip to main content
Logo

Set up news module templates

The news module is based on a structured content template. This article will take you through the process of setting up the module and how to use the associated web controls to show your news articles in a list.

There are two options:

A. Create a news article template from scratch

  1. Create a new piece of content inside your Templates folder. Name the template News-Article and click Save. Click the button labelled Edit New Template.
  2. You will be presented with a What You See Is What You get (WYSIWYG) editor. Click on the source code editor button in the toolbar. It looks like this: <> , paste in your HTML.
  3. Click Save, now in the WYSIWYG view, right click in your template where you want the news record to appear and select Insert Webcontrol > News / Press Releases > Record.
  4. You will be presented with some options such as Record Image Width, Record Image Height and Date Format. These options control how the record will display in the page.
  5. Click through to the Properties tab.
  6. Under the section Template type select Structured Content Type. Then set the Association to be News.
  7. At this stage you may want to assign any stylesheets which are required to style your template.
  8. Once finished, Save and approve the template.

B. Create a news article template using an existing page template

As you already have a page template you want to use as a basis for your news article template you first have to create a sub template called News-Subtemplate. This sub template will contain the news record control and will be dragged into an existing page template to create your news article template.

  1. Create a new piece of content inside of your Sub Templates folder. Name the template News-Subtemplate and click Save. Click Edit New Template.
  2. You will be presented with a WYSIWYG) editor, right click in the editor and select Insert Webcontrol > News / Press Releases > Record.
  3. You will now see some options such as Record Image Width, Record Image Height, Date Format. These options control how the record will display in the page.
  4. Once you are happy with the options, click through to the Properties tab.
  5. Under Template Type tick the Is a sub template option, this will stop the template showing in wizards for content editors as this isn't a page template.
  6. Click to Save and then approve your template

Now you have created your sub template you can now move onto creating your news article template.

  1. Create a new piece of content inside your Templates folder. Name the template News-Article and click Save. Click the button labelled Edit New Template.
  2. You will be presented with a WYSIWYG editor. You can now drag in one of your standard page templates and into the content placeholder drag in the News-Subtemplate which you previously created .
  3. Click through to the Properties tab.
  4. Under the section Template type select Structured Content Type. Then set the Association to be News.
  5. At this stage you may want to assign any stylesheets which are required to style the template.
  6. Once finished, Save and approve the template.

Assign your news article template to a folder

Once you have created your template you need to Submit & Approve it so we can assign it to the folder you intend to create your news articles in. Before content can be created based on a page template, it is necessary to assign the page template to the folder where pages will be created. Follow the steps below to assign the news template to a news folder which you will need to create.

  1. Right click to bring up the context menu and click through to the Properties window on the News folder.
  2. Navigate through to the Templates tab and click on the button Add Templates. A window will appear.
  3. This window will display all templates available to you to assign to the folder. Find your News-Article template and click Save.
  4. The News-Article template will now be assigned to the root folder. Every folder you create in this folder will also inherit the News-Article template.