Script: Class dw.web.PageMetaTag
Class PageMetaTag
- Object
- dw.web.PageMetaTag
Page meta tags are used in HTML documents to provide structured data about a web page. They are usually part of the head section. Common tags are for example robots, description or social tags like open graph (e.g. 'og:title').
Page meta tags can be obtained within:
home page context
detail page context
listing page context
and can be set at PageMetaData container object, which is always available in the pipeline dictionary and is used as transfer object to fill the head area with meaningful page meta tag elements.
Properties
content : String Read Only
The page meta tag content.
ID : String Read Only
The page meta tag ID.
name : boolean Read Only
Returns true if the page meta tag type is name, false otherwise.
property : boolean Read Only
Returns true if the page meta tag type is property, false otherwise.
title : boolean Read Only
Returns true if the page meta tag type is title, false otherwise.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getContent() : String
Returns the page meta tag content.
Returns the page meta tag ID.
isName() : boolean
Returns true if the page meta tag type is name, false otherwise.
isProperty() : boolean
Returns true if the page meta tag type is property, false otherwise.
isTitle() : boolean
Returns true if the page meta tag type is title, false otherwise.
Methods inherited from class Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
getContent
getContent() : String
Returns the page meta tag content.
Returns:
page meta tag content
getID
getID() : String
Returns the page meta tag ID.
Returns:
page meta tag ID
isName
isName() : boolean
Returns true if the page meta tag type is name, false otherwise.
Returns:
true if the page meta tag type is name, false otherwise
isProperty
isProperty() : boolean
Returns true if the page meta tag type is property, false otherwise.
Returns:
true if the page meta tag type is property, false otherwise
isTitle
isTitle() : boolean
Returns true if the page meta tag type is title, false otherwise.
Returns:
true if the page meta tag type is title, false otherwise