Skip to content

SEO Meta Data

Trevor Fayas edited this page Jan 17, 2022 · 5 revisions

While some aspects of Meta Data are not heavily used anymore by major search engines, they are still heavily used for things such as Social Media Sharing.

The Baseline has a <vc:page-meta-data /> and <vc:manual-page-meta-data/> view components that allow for Title, Description, Keywords, and thumbnail to be rendered out.

<vc:page-meta-data /> is a parameterless component that purely uses the current page context to get the metadata (page builder).

<vc:manual-page-meta-data meta-data=@PageMetaData /> takes a PageMetaData properties class so you can specify everything yourself.

For the default page-meta-data is generated from...

  • Thumbnail: from the DocumentCustomData["MetaData_ThumbnailSmall"]
  • Keywords: from DocumentCustomData["MetaData_Keywords"] followed by the DocumentPageKeywords
  • Description: from DocumentCustomData["MetaData_Description"] followed by the DocumentPageDescription
  • Title: from DocumentCustomData["MetaData_Title"] followed by the DocumentPageTitle and then DocumentName

These DocumentCustomData fields are found by inheriting the Generic.BaseInheritedPage, and are generated using Sean's XperienceCommunity.PageCustomDataControlExtender.

Clone this wiki locally