Skip to content

Using X-data

The left-side menu offers lots of useful configuration and meta data for your new page. Let's get to know them.

Teaser Content

We use the X-data Teaser Content to fetch ready-made titles, descriptions and images. It is fetched and used in 

  • Teaser Cards
  • CTA Group
  • Feed
  • Archive
  • Internal search results

If the ready-made teaser content does not suit your context, you can overwrite the data in some of the parts.

If you wish to change the Teaser Content for a specific page or link, always consider how this will affect content that is already using it. You can find inbound dependencies in the right-side menu.

SEO

All content types have an X-data for SEO, which comes from the Enonic App SEO Meta Fields

This allows you to configure your content's meta title and meta description for search engines.

Search engines may create their own titles or descriptions

Feed and Archive

To display any content at all in the parts Feed and Archive, you must use the X-data "Add to Feed and Archive". It uses the content type Category to fetch Teaser Content from

  • Link
  • Page: Article
  • Page: General
  • Event

When connecting your page, link or event to a Category through the X-data, it is instantly available in all Feed or Archive parts configured with the same Category. That means you can share content directly on multiple pages simultaneously by publishing only the one content type.

Article Options

In the Page: Article content type, you have additional options to display dates and an anchor menu.

Show "last updated"

When using Header: Blog, a date will always be displayed above your title. The default setting is the article's first publishing date. If you check the first option for "last updated", it will display the date for your most recently published changes.

Override dates

If you'd like to display a different date for the article's first or most recent publishing, you may use the second option to overwrite them. This could be useful if you've edited the page to fix a spelling error or if you recreate content that was first published in the past.

Show anchor menu

Sometimes we write articles that aren't necessarily meant to be read from top to bottom. Using the bottom X-data option for Article Pages, you may add an anchor menu. This creates an overview of the article content and allows users to jump directly to its different section titles.

Global Settings

The Site content type has X-data that allows you to configure the navigation and footer for your website.

This fetches the content types Navigation and Footer.

Error Pages

We have two types of custom error pages – 404: Page not found and 500: Internal server error.

Within the Site content type, you'll find an X-data that allows you to edit the texts for these pages. Use this to provide ways forward as the user meets a dead end, such as back to the front page, the search page or a way to report errors.