Package com.day.cq.wcm.api.variants
Interface PageVariantsProvider
-
public interface PageVariantsProviderProvides variants of a page based on cq:siteVariant nodes that link multiple sites together, that contain variants of the same content. The data provided by this service is usually used to build a list of elements in HTML pages, that can be used to provide website visitors with a way to switch between those site variants. See also https://zerowing.corp.adobe.com/display/cq5/CQSiteVariants
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<PageVariant>getVariants(Page page, SlingHttpServletRequest request)Returns a list of page variants to be used in the<head>section of a page in order to indicate alternate representations of the same content.
-
-
-
Method Detail
-
getVariants
java.util.List<PageVariant> getVariants(Page page, SlingHttpServletRequest request)
Returns a list of page variants to be used in the<head>section of a page in order to indicate alternate representations of the same content.- Parameters:
page- the CQ Pagerequest- the request, in case the sent selectors must be taken into consideration; otherwise this parameter can be null- Returns:
- a list with the identified
PageVariants or an empty list if none was found
-
-