Adding a new cmsparagraph component to existing pagetemplate and displaying it in storefront
$contentCatalog=usContentCatalog
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
$jarResource=jar:com.msasafety.ac.setup.MsasafetyacSystemSetup&/msasafetyac/import
$lang=en
INSERT_UPDATE ContentSlotName ; name[unique=true] ; template(uid,$contentCV)[unique=true][default='SubscriptionViewPageTemplate'] ; validComponentTypes(code) ; compTypeGroup(code)
; SubscriptionBuilderParagraph ; ; CMSParagraphComponent,MSAParagraphComponent
INSERT_UPDATE CMSParagraphComponent ; uid[unique=true] ; name ; content[lang=$lang] ; $contentCV ; &componentRef
; subscriptionbuilderParaComp_US ; subscriptionbuilderParaComp_US ; <ul><li>Subscription builder Paragraph1</li><li>Subscription builder Paragraph2</li><li>Subscription builder Paragraph3</li></ul> ; ; subscriptionbuilderParaComp_US_ref
INSERT_UPDATE ContentSlot ; $contentCV[unique=true] ; uid[unique=true] ; name ; active ; cmsComponents(uid,$contentCV)
; ; SubscriptionBuilderSlot ; Subscription builder Paragraph Slot ; true ; subscriptionbuilderParaComp_US
INSERT_UPDATE ContentSlotForTemplate ; $contentCV[unique=true] ; uid[unique=true] ; position[unique=true] ; pageTemplate(uid,$contentCV)[unique=true][default='SubscriptionViewPageTemplate'] ; contentSlot(uid,$contentCV)[unique=true] ; allowOverwrite
; ; SubscriptionBuilder-SubscriptionView ; SubscriptionBuilderParagraph ; ; SubscriptionBuilderSlot ; true
<cms:pageSlot position="SubscriptionBuilderParagraph" var="feature" element="div" class="SubscriptionBuilderParagraph">
<cms:component component="${feature}" />
</cms:pageSlot>
Comments
Post a Comment