+

Search Tips   |   Advanced Search

Add HTML meta tags for Search Engine Optimization

To enhance we can add HTML title and other meta tags to the page source. These meta tags are used to define keywords and other metadata that search engines and crawlers can use when creating search indexes and collections. When including content in a page with a Web Content Viewer portlet, we can improve the SEO of the page by adding title and meta tags with values derived from the web content itself. We override default values by editing portlet preferences in the Web Content Viewers.

Having multiple web content viewers on the same page set meta tag values may result in worse SEO, especially if the multiple viewers set different values for the same meta tag name. When you have multiple viewers on the same page, modify preferences for only a single viewer whose content best represents what the page is about. We can then use that viewer to define a new HTML title and any meta tags.


Override the HTML title for a page and set meta tags

We can define an HTML title that better reflects the content on the page. We can even have the viewer pull the title directly from the rendered content.

  1. Select one Web Content Viewer to be the primary viewer on the page.

  2. Go to:

      Edit Shared Settings | Page Display Title

  3. Select a value other than Use default title.

    To have the title value come directly from the web content being rendered by the viewer, select...

      Select from content

  4. Save the changes

The page header is updated with the new title value. For example:


Use portlet preferences to add meta tags to page header

Each meta tag is defined by a pair of portlet preferences:

...where suffix identifies the name of the meta tag. For example...

To define a specific attribute for the meta tag:

The suffix portion of each preference is used to associate a name preference with its related value preference. The suffix can be any value as long as it is unique across the preferences.


Add portlet preferences to a Web Content Viewer

To specify the portal preference for the name of the meta tag.

To specify an attribute other than the name attribute:

For example, to add the following meta tag with the name keywords:

...specify the following preference:

To add the following meta tag with the http-equiv attribute:

...specify the following preference...


Specify the portal preference for the value of the meta tag

The value of the meta tag can be specified in three ways:

Depending on how to specify the meta tag value, different portlet preferences are required. Only one value can be specified per suffix.


Default values for common meta tags

For several of the most common meta tags, default values are predefined. For these meta tags, we can create the portlet preference for only the meta tag name. The meta tag value is provided automatically, without the need for a corresponding name preference. The following meta tags have default values:

If you do not want to use the default value, we can set the value using one of the methods previously described.


If the value of the meta tag requires a scheme attribute

If the value of the meta tag requires a scheme attribute, specify the scheme with preference...

For example specify the following preference:

...to produce...

The format and scheme used to write date elements and content properties related to date and time information, such as the LastModifiedDate property, depends on the meta tag attribute name. By default, all date and time information is formatted according to the date format defined by the HTTP specification. The format used to write date and time information in other meta tags is the data and time format recommended by the World Wide Web Consortium (W3C) under the scheme named W3CDTF.


Examples

The following examples demonstrate the different ways of specifying portlet preferences and the resulting meta tags in the output.


Parent: Customize web content delivery