Skip to main content
ZenHub houses documentation to support you if you’re using Contensis Classic. Contensis Classic includes our WYSIWYG and templating features. If you’re working with a newer version of Contensis, is your go-to place to find anything Contensis-related when building with content types.

Setup related items using relationships

Here we will explain the process of creating relationships between pages, allowing you to create a list of related articles.

Relationship types

The type of relationship will determine how the relationship is displayed in the page and corresponding pages:

  • Bidirectional: the pages specified in the relationship panel will be shown on the page currently being edited. The related pages will also display the page being edited.
  • One way: the related page will only be displayed on the page where the relationship has been created.
  • Group: all the pages put into the group will be shown as related to each other.

Configure relationships

Before you can use relationships in your pages you will need to setup relationships and assign them to specific content type(s) and/or page template(s). Having multiple relationships ensures you only have them available to the parts of your site where they are needed.

  1. Open up the Management Console and click through to Project Setup and then to Relationships in the expanded menu.
  2. You will be shown a list of possible relationships. Click the Create Relationship button. A popup window will be generated.
  3. Give the relationship a name and choose a type of relationship, then click Save.
  4. Click on the page plus sign to choose what content type(s) and/or page template(s) you want the relationships to be available to.

Create a relationship

  1. Edit a page you want to add relationships to.
  2. Press the Relationships tab, the related articles panel will load.
  3. Drag an item of content from the project explorer into the relationship panel. Items can be ordered by dragging them in the list.
  4. A relationship has now been set between the page content and selected item, and will be displayed once the content has been submitted and approved.

Web controls

You can display the relationship within your pages using the web controls we provide. There are two web controls that can be used to display the current pages related items.

Related items

The related items web control simply outputs an unordered list of the related pages for the current page.

Related items as standard list

This control differs to the related items control as there are many more configurable options including the ability to apply data filters to the control.