Skip to main content
Logo

Create a classifieds template

This article goes through the process of creating a template that can be used by your editors to create new classified item. The template will consist of a sub template, a template with some additional properties, and a customisable web control.

Nested template approach:
Using sub templates allows changes to be easily made, which in turn will affect each classifieds page that has been created from it.

Create a sub template

  1. Create a new sub template.
  2. Give your sub template a name (e.g. classifieds-sub).
  3. Add the classifieds record web control by right clicking within the sub template to bring up the Insert Web control menu, select Classifieds and then select Record.
  4. The Classifieds Record web control settings window will appear. Make any changes that you need and click Save.
  5. Save the sub template and then Submit and Approve it.

Create a template to house the sub template

  1. Create a new Structured Content Template.
  2. Give your template a name (e.g. classifieds-record).
  3. Select Properties from the Editor tab bar.
  4. Scroll down to Template Type and select Structured Content Template from the Type dropdown and Classifieds from the Association dropdown menu. This tells Contensis that any page created using this template will be based on the Classifieds structured content definition.
  5. Return to the Editor tab bar and add the sub template you created in the previous section, by clicking and dragging the sub template icon into your template placeholder. The sub template and web control will be displayed within your template.
  6. Save the template and then Submit and Approve it.
  7. You'll need to assign your template to the folder where you want editors to add classified adverts to your site.

Customise the record control settings

The record control is used in the classified template to determine what is displayed on your front end website. Use the control settings below to enable or disable the items you want to appear.

For more customisation and details of the other properties within this web control, you can refer to our common web control settings list.

Control settings

Classifieds Listing Page

Browse to specify the URL of the page that will display the results returned by the listings web control. When assigned, the path to the page will be displayed.

Edit Page

This assigns the edit page to the module using either the Browse or Search buttons.

Show Price Info

This checkbox determines whether or not any entered price information will be displayed.

Show ID

This checkbox determines whether or not the classifieds ID will be displayed.

Show Heading

This checkbox determines whether or not a heading will be displayed.

Show Type

This checkbox determines whether or not the type will be displayed.

Show Category

This checkbox determines whether or not the category will be displayed.

Show Date Posted

This checkbox determines whether or not the date the classified was posted will be displayed.

Show Location

This checkbox determines whether or not any entered sellers location details will be displayed.

Show Seller

This checkbox determines whether or not any entered seller details will be displayed.

Show Seller Image

This checkbox determines whether or not any uploaded seller images will be displayed.

Show Seller Email

This checkbox determines whether or not any entered seller email details will be displayed.

Show Seller Telephone

This checkbox determines whether or not any entered seller telephone number will be displayed.

Show Seller Mobile

This checkbox determines whether or not any entered seller mobile telephone number will be displayed.

Show Price

This checkbox determines whether or not the price of the item will be displayed.

Show Image

This checkbox determines whether or not any uploaded item images will be displayed.

Show Image Caption If No Image

This checkbox determines whether or not any any caption text will be displayed if no image is uploaded for the article.

Profile Image Max Width

Enter a numerical value in this text field to define the maximum width of the profile image, in pixels.

Profile Image Max Height

Enter a numerical value in this text field to define the maximum height of the profile image, in pixels.

Who's Who Record Page

Use the Browse or Search buttons to assign Who's Who profile pages to Classifieds listings.