Thursday, April 1, 2021

Sitecore SXA

 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 in Additional 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 the AllowedInTemplates field for rendering variants.

  • $xaRichTextProfile - the XA.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.


Configure the Media Library for an SXA site:
Whenever you add a site through Site creation wizard, following media item get created:
  1. <<SiteName>>
  2. shared
Please see below screenshot for reference:





note: if you see the path of this folder it will be of media library.

Thus in simple words we can say that it makes easy for content editor to search images related to particular site in very easy way.

If you want to add images from global folder which is shared across sites then you can do it easily over here by adding that shared image folder in Additional Children Field as shown below.





List Manager not showing any list in sitecore

 Hello Friends, Issue :  Created a list  in List Manager, it shows successfully created but when we go back to List Manager we do not see an...