Go to the homepage
Powered bySitecore Search logo
Skip to main contentThe Configuration options | Contribution Guide page has loaded.

Configuration options

Learn more on configuring pages

Configuration

Each page can store metadata (frontmatter) in head of the page. Required fields are title and description, but there are lots of other settings possible. A default page setup would look like this

--- title: 'Page Title' description: 'Description of the page' --- # This is where the content would be

Options

Besides the title and description there are various other options available:

Core

These parameters affect core functionality of a page:

VariableTypePurpose
PageTypestringOptions to use a different pagetype (defaults to default)
hasInPageNavbooleanShows a menu that links to all H2 element on the current page
hasSubPageNavbooleanShows a menu that uses a manifest.json as datasource
heroImagestringOverride the current hero image with a custom image
openGraphImagestringOverride the OG image with a custom image
partialsstring[]Render the contents of the partials on this page (deprecated)
partialGroupsPagePartials[]Render one or multiple groups with partials on this page (example)

Integrations / Components

The configuration options enable and customize different components used on the pages

| Variable | Type | Purpose | | ------------------ | -------- | --------------------------------------------------------------------- | ----------------------------------------- | | stackexchange | string | string[] | string or string array of tags (#tagname) | | twitter | string | string[] | String array of accounts or hashtags | | youtube | string | Playlist Id | | changelogProductId | string[] | array of productIds to include | | changelog | string | Number of entries to retrieve | | promoBefore | string[] | Name of .ts file within data\promos folder (without file extension) | | promoAfter | string[] | Name of .ts file within data\promos folder (without file extension) |

Sitecore Community

These options can enable/disable Sitecore Community integrations on a page level

VariableTypePurpose
sitecoreCommunityBlognumber/booleanRead more here
sitecoreCommunityBlogSortSortOption/SortOption[]Read more here
sitecoreCommunityEventsbooleanRead more here
sitecoreCommunityNewsbooleanRead more here
sitecoreCommunityQuestionsnumber/booleanRead more here
sitecoreCommunityQuestionsSortSortOption/SortOption[]Read more here
sitecoreCommunityQuestionsCategoryForumOption/ForumOption[]Read more here

Edit this page on GitHub

Feedback

© Copyright 2024, Sitecore. All Rights Reserved