Pipelet: Common UpdatePageMetaData

Pipelet UpdatePageMetaData

Updates the page metadata (that is used to specify the page title, among other things), based on an input parameter. The pipelet checks the following input parameters, in the following order, for a valid object: Product, Content, Category, Folder and stores it in the "CurrentPageMetaData" key in the pipline dictionary. It transfers data from the first object found into the page metadata. If no input object is found, then it uses the Default* parameters. If a valid object is found, a three-way process is started to find the title used to present in the <title> tag. First the pipelet tries to obtain the title from the "pageTitle" attribute of the object. If this is blank the title is being obtained from the "defaultTitle" parameter passed to the pipelet. If this param is also blank the title falls back to the name (Product, Content) or displayName (Category, Folder) attribute depending on the object type. The information stored in CurrentPageMetaData can be referenced in templates and rendered in an HTML head section for example:

<head> <title>${pdict.CurrentPageMetaData.title}</title> <meta name="description" content="${pdict.CurrentPageMetaData.description}" /> . . . </head>

Group:

Common

Input Parameters

DefaultTitle : String Optional

An explicit title for the page.

DefaultKeywords : String Optional

Explicit keywords for the page.

DefaultDescription : String Optional

An explicit page description.

Product : Product Optional

A product, which is used to determine the page meta data information.

Category : CatalogCategory Optional

A category, which is used to determine the page meta data.

Content : Content Optional

A content asset used to determine the page meta data.

Folder : Folder Optional

A content folder used to determine the page meta data.