Search code examples
ektron

Ektron 9 - How to set Page Title (<html><head><title>...</title>...)


Noob question, but google is not giving me the goods:

How do you set the page title in a page in Ektron 9? You know: the text that goes into the title tag in the head of the html document.

In an Ektron 8 site I have used, there was a page title meta value that was used.

  • Does this work out-of-the-box?
  • If not, are there best practices?

What I have tried

  • Title of page is the "Content Title" not "Page Title"
  • New page widget does not have "page title" on alias screen as one pdf suggested
  • Googling "ektron page title" and variants did not throw up much.
  • Editing ektron page's folder properties did not show up anything.
  • Ektron settings "metadata definitions" does not have one for page title

Will keep you posted if I find the answer myself


Solution

  • Ektron does not create the definitions for Title, Description, Keywords or other SEO-related metadata out of the box (when you set up a min site, as is standard).

    The site manager / developer defines those. How you set that on the page depends on your implementation and Ektron version.

    For example, most 8.0 (and prior) sites will use the CMS:Metadata control in the of the master page (or page, if no master). The control accepts one dynamic parameter, so I used to place three controls, one for content (dynamic param = id), for forms (dynamic param = ekfrm), and for PageBuilder (dynamic param = pageid).

    It's more common now (versions 8.5+) to see developers retrieving the metadata from the content (whether html / smart form, html form, or pagebuilder) using the ContentManager API method GetItem. This method accepts two params - the first is the ID of the item you want to retrieve, the second is boolean and, when set to true, will tell the API to retrieve metadata values. Once you have the values, you define the output.

    Either method will work in versions 8.5+. The latter gives you more control.