menu

SFRA / Server-side JS / Namespace: Page

Page

Methods

(static) Base/Page-Include()

Page-Include : This end point is triggered when content assets are embedded within a rendered page ( eg footer content)

Parameters:
Type Description
middleware

server.middleware.include

middleware

cache.applyDefaultCache

querystringparameter

cid - the id of the content asset to be embeded in a full page

category

non-sensitive

serverfunction

get

Source:

(static) Base/Page-IncludeHeaderMenu()

Page-IncludeHeaderMenu : This is a local include that includes the navigation in the header

Parameters:
Type Description
middleware

server.middleware.include

middleware

cache.applyDefaultCache

category

non-sensitive

serverfunction

get

Source:

(static) Base/Page-Locale()

Page-Locale : The Page-Locale endpoint is used as a remote include that renders the country selector ISML template

Parameters:
Type Description
querystringparameter

mobile - if this value is truthy it will use the mobile version else it will load a more desktop freindly version

category

non-sensitive

serverfunction

get

Source:

(static) Base/Page-SetLocale()

Page-SetLocale : This end point is used to change the locale, language and currency of the site, it is not used in the base site, but it is in the base cartridge

Parameters:
Type Description
querystringparameter

action - the end point that it should load after changing the locale

querystringparameter

code - the locale code to switch to

querystringparameter

CurrencyCode - the currency code to be assigned to the site

querystringparameter

queryString - the query string of the Current request so that it be reloaded in the new locale (eg pdp)

category

non-sensitive

serverfunction

get

Source:

(static) Base/Page-Show()

Page-Show : This end point will render a content asset in full storefront page

Parameters:
Type Description
middleware

cache.applyDefaultCache

middleware

consentTracking.consent

querystringparameter

cid - the id of the content asset to be displayed in a full page

category

non-sensitive

serverfunction

get

Source: