Forums/New Features

Database item SEO metadata fields now accessible from WebvantaScript

Michael Slater
posted this on July 8, 2013, 19:44

The Webvanta system includes metadata fields, such as the page title and page description, not only for every page but also for every database item. These fields are, of course, critical for SEO. When a database item is displayed on an item page, the item's metadata automatically becomes the page's metadata.

Sometimes, however, such as when using the Variable page type, you may want to access these metadata fields explicitly, using WebvantaScript. You can now do so using the field names seo_title, seo_description, and seo_keywords. For example, to display the seo_title as the visible page title, you use:

<h1><w:seo_title /></h1>