Technical documentation - PageMetaData and PageTitle

This article describes how to configure page title and page metadata.

This configuration is available in version 5.1 and later.

Overview

PageMetaData is a method to change the title of the page and including metadata in the page header. It is useful for search engine optimizations.

Default

The default page metadata is defined for all presentations in the default setting in profile.default.config. It looks something like this.

<PageMetaData title="{Identity} {Name} {Specification=_PARTSPEC} - {Text=PageTitle}"/>

Configuration

Redefine PageMetaData in PresentationSettings.

<PresentationSettings> <Presentation template="default"> <PageMetaData title="{Text=PageTitle}" metatag="{Name}, {PartNumber}, {specification=_PARTSPEC}"/> </Presentation>

Attributes

PageMetaData have the following attributes

Options

Usage

Values

Options

Usage

Values

title

Set page title. The string may contain data which is referred to using {}, see below.

A string

metatag

Define content of meta tags in the page header

A string

The string is created using normal text and {} to refer to information.

Example is title=”MyPageTitle {text=MyKeyText}”. This will result in a page title “MyPageTitle MyKeyText” where MyKeyText is the keytext and then possibly translated.

Data which may be accessed is as below.

Code

Content

Code

Content

{Identity}

Identity of presentation

{PartNumber}

Part number if presentation is a part

{Name}

Name of presentation

{Description}

Description of presentation

{Specification=_PARTSPEC}

Content of specification with specification type (code)

{Text=KeyText}

A keytext.

 

Advanced option

<PageMetaData> <Title separator=", "> <Value property="PartNumber"/> <Value property="Name"/> <Value specification="_PARTSPEC"/> <Text text="PageTitle"/> </Title> <MetaTag separator=", "> <Content property="PartNumber"/> <Content property="Name"/> <Content specification="_PARTSPEC"/> <Text text="PageTitle"/> </MetaTag> </PageMetaData>

This would result in an output like 1234567890, Cylinder, 10mm, The Cylinder Company and meta tags to be like 1234567890, Cylinder, 10mm, The Cylinder Company.