Bridgeline Digital Logo
Menu

Create Utility Content

The Utility content type contains content templates that are used to make certain OrchestraCMS functions work and to add custom HTML to your site.

Content List

The Content List template is used on pages created for email notifications. It is a placeholder for the content that is automatically selected and sent in the email notification.

Use the Content List template

  1. In the Content editor:
  2. In Select Content Type, select Utility as the content type.
  3. In Select Content Template, select Content List as the content template.
  4. Click Finish & Edit.
  5. In the Content List dialog, click in the Target Page box.
  6. In the Select Link dialog:
  7. From the Open In dropdown menu, type or select The Current Window, A New Window, or A Pop Up Window.
  8. From the Link To dropdown menu, select a Page in this CMS, a File in this CMS, or A file or page on another site.
  9. In the Page box, click to select an existing page or click New to create a new preview page for the content type and content template that is listed.
  10. At the bottom of the Select Link dialog, click Select.
  11. In the Actions panel, click Save.

Content View

The Content View content template is used for three purposes:

  • To create a placeholder for content on a content preview page
  • To create a placeholder for content on a taxonomy detail page
  • To create a placeholder for the taxonomy-filtered content search results detail page.

Because the Content View template has no function without a page, there are only page-specific properties to set after the content item has been placed on a page.

If you are using the Content View content template on a content preview page, you do not need to set page-specific properties; however, if you do set them, there will no longer be a generic content view.

If you are using the Content View content template on a taxonomy detail page, you need to set the page-specific properties to define the content type and content template of the content that will be displayed on the page.

To set page-specific properties for the Content View content template

  1. In the page editor, click the page-specific properties button on the content item bar.
  2. In the Page-specific Properties dialog, select the type of content that will be displayed on the page from the Content Type list.
  3. Select the content template that will be used for the content that is displayed on the page from the Content Template list.
  4. Click Save.

Custom HTML

The Custom HTML content template is used to insert any custom HTML or JavaScript that is not properly accommodated by another template. This content template is often used to insert items such as Google Gadgets and Facebook widgets.

To use the Custom HTML content template

  1. In the content editor, in the HTML box, enter custom HTML.
  2. In the Actions panel, click Save.

Spacer

The Spacer content template is used to create a space between two other content items on a page. If you have to use the Spacer template frequently between the same types of content, a better solution might be to have a developer change the CSS for your page templates to automatically insert a space in the required locations.

To use the Spacer content template

  1. In the content editor, in the Height box, enter the height of the space in pixels.
  2. In the Background Color box, enter the HTML hexadecimal color code for the space. Typically, this color should match the background color of page in the location where the space will appear.
  3. In the Actions panel, click Save.

Language Selector

You can add the Language Selector content template to your pages so your site visitors can view the page in another language. Public site visitors can select any language the current page supports. Authenticated users (Intranet or Communities) will see multilingual pages in the language specified on their user record unless you disable the “Always use Salesforce User Language to determine language” option shown in Setup under Manage Languages.

To use the Language Selector content template

  1. In Create New Content dialog:
    • In Select Content Type, select the Utility content type.
    • In Select Content Template, select the Language Selector content template.
  2. In the Language Selector Label, enter the text you want.
  3. In the Actions panel, click Save.

We recommend that you translate the Language Selector Label into all the languages the site supports.

When you drop the Language Selector on a page, it displays a list of languages the page has. When you drop the Language Selector on a master page to make it available to all pages using that master page, it will always display the list of available languages in the master page.

 

In order for this feature to work properly, each page must first be translated in the selected language.

Pages which include only a subset of the available languages in the master page will not display if a language that is available only in the master page was selected. We recommend that you consider your site page configuration before deciding how best to implement the Language Selector.

To enable the Language Selector for authenticated users

  1. In OrchestraCMS Setup, under Site, click Languages.
  2. On the Manage Languages page, clear the Always use Salesforce User Language to determine language check box.
  3. Also under Manage Languages, there is a Site Language cookie option: Enable language cookie for this site, which is selected by default.

Enabling the language cookie for an OrchestraCMS site allows the following actions:

  1. Once the language selector content is placed on a page, that page can then be viewed in one of the available languages, because an ocmsLang cookie is generated containing the selected language code.  
  2. When determining the language in which to display a page, OrchestraCMS will look at the ocmsLang cookie to determine the language if other conditions are not met.
 

If OrchestraCMS Language cookie is disabled in OrchestraCMS, the Language Selector will utilize “ocmsLang” URL parameter to set the requested language.

Enabling or Disabling the Language cookie will require a cache refresh for all cache enabled published pages with a Language Selector Content on them.