Sitecore SXA Media
Different tokens used in SXA:
The resolveTokens
pipeline is used to resolve tokens that can be used in queries. For example:
$compatibleThemes
- path to all themes.$theme
- currently used theme.$pageDesigns
- root of page designs (sitecore/content/Tenant/Site/Presentation/Page Designs
).$partialDesigns
- root of partial designs (/sitecore/content/Tenant/Site/Presentation/Partial Designs
) .$currenttemplate
- name of the current template.$tenant
- path to the current tenant.$site
- path to the current site.$home
- path to the current site start item (by default:/sitecore/content/Tenant/Site/Home
).$linkableHomes
- paths to home items from linkable sites.$templates
- path to the current site templates (/sitecore/templates/Project/Tenant
).$siteMedia
- paths to media folders specified inAdditional Children
field on virtual media folder item.$sharedSites
- for multiroot fields, resolves shared site for the current tenant.$rvSystemTemplates
- list of templates defined in a configuration. These templates are used to feed theAllowedInTemplates
field for rendering variants.$xaRichTextProfile
- theXA.Foundation.Editing.DefaultRichTextProfile
setting value.
By adding new processors to this pipeline, you can design new tokens.
This pipeline is defined in the Sitecore.XA.Foundation.TokenResolution.config
file and includes the following processors:
Processor | Description |
---|---|
CurrentTemplateToken | Determines the current tokens used. |
EscapeQueryTokens | Used to escape tokens that are used in Sitecore queries. |
- <<SiteName>>
- shared