Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ccrz.cc_hk_UserInterface.headContent
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
B2B Commerce for Visualforce Spring ’20 | 4.12 | 11 |
B2B Commerce for Visualforce Summer ’19 | 4.11 | 10 |
B2B Commerce for Visualforce Spring ’19 | 4.10 | 9 |
B2B Commerce for Visualforce Summer ’18 | 4.9 | 8 |
Signature
global virtual Map<String, Object> headContent(Map<String, Object>)
Inputs
None
Outputs
Map<String, Object> that includes the following key. The exact content depends on which Bootstrap version your storefront uses:
- ccrz.cc_hk_UserInterface.HEAD_CONTENT
- String that contains the HTML content to add to the page's <head> element. This content is added to the page source after the Head
Include Begin and before the JavaScript that specifies page labels:
<head> <!--Head Include Begin--> <apex:include id="hib" pageName="{!headerBeginPage}" rendered="{!useHeaderBegin}" /> <!--Core objects definitions--> <script type="text/javascript"> var CCRZ = CCRZ || {}; CCRZ.devMode = CCRZ.devMode||{!storefront.DevMode__c}; </script> <!--ccrz.cc_hk_UserInterface.HEAD_CONTENT inserted here--> <!--Internal component that creates the JavaScript page labels--> <c:cc_PageLabelsInclude /> <!--Head Include End--> <apex:include id="hie" pageName="{!headerEndPage}" rendered="{!useHeaderEnd}" /> </head>
For a Bootstrap 3-enabled storefront, this method calls the following inner methods for populating the specific <link> and <script> elements to add: