What are three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page? (3 answers)

What are three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page? (3 answers)
A . Access the source HTML for the page viathe browser developer tools.
B . Execute CCRZ.pagevars.pageLabels[‘PAGE_LABEL_NAME’) in the JavaScript console.
C . Execute CCRZ.processPageLabelMap(‘PAGE_LABEL_NAME’) in the JavaScript console.
D . Enable the ‘display page label names’ in cc admin.
E . Execute ((‘PAGE_LABEL_NAME’)) in the JavaScript console

Answer: B,C,D

Explanation:

Three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page are: Execute CCRZ.pagevars.pageLabels[‘PAGE_LABEL_NAME’] in the JavaScript console. This will return the value of the page label with the given name from the pagevars object, which contains all the page labels that are used on the page.

Execute CCRZ.processPageLabelMap(‘PAGE_LABEL_NAME’) in the JavaScript console. This will return the value of the page label with the given name from the pageLabelMap object, which contains all the page labels that are defined in CCAdmin.

Enable the ‘display page label names’ in cc admin. This will display the name of each page label next to its value on the storefront pages, which can help identify and verify the page labels.

Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Page Labels

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments