cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sync for a custom CMS item is not working | SmartEdit

0 Likes
739

Hi All,

Working on Hybris 1808, created a very simple custom CMS component, here is the defintion for the same:

 enter code here<itemtype code="CMSCheckoutHelpComponent" generate="true" jaloclass="com.test.core.jalo.cms2.components.CMSHelpComponent" extends="SimpleCMSComponent" autocreate="true">
    <description>It represents CMS component with an Link and Paragraph Component.</description>
    <attributes>
       <attribute qualifier="link" generate="true" autocreate="true" type="CMSLinkComponent">
          <persistence type="property" />
          <description>Link Component.</description>
       </attribute>
       <attribute qualifier="htmlContent" generate="true" autocreate="true" type="CMSParagraphComponent">
          <persistence type="property" />
          <description>Paragraph Component contains the data.</description>
       </attribute>
    </attributes>
 </itemtype>


This is how my impex file look like

 enter code here# Create Content Slots
 INSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];name;active
                          ;;HelpSlot-CartPage;Cart Page Help Section;true
 
 
 # Cart Page Template
 INSERT_UPDATE ContentSlotName;name[unique=true];template(uid,$contentCV)[unique=true][default='CartPageTemplate'];validComponentTypes(code);compTypeGroup(code)
                              ;CartHelpSectionContentSlot;;CMSCheckoutHelpComponent;narrow
 
 
 INSERT_UPDATE ContentSlotForPage;$contentCV[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCV)[unique=true][default='cartPage'];contentSlot(uid,$contentCV)[unique=true]
                                 ;;HelpSectionContentSlot-CartPage;CartHelpSectionContentSlot;;HelpSlot-CartPage
 
 INSERT_UPDATE CMSLinkComponent;$contentCV[unique=true];uid[unique=true];name;url;&linkRef;&componentRef;target(code)[default='sameWindow']
                               ;;Link;Custom Link;#;Link;Link
 
 INSERT_UPDATE CMSParagraphComponent;$contentCV[unique=true];uid[unique=true];name;&componentRef
                                    ;;HelpParagraphComponent-CartPage; Paragraph Component;HelpParagraphComponent-CartPage
 
 INSERT_UPDATE CMSCheckoutHelpComponent;$contentCV[unique=true];uid[unique=true];link(uid);htmlContent(uid);name;&componentRef
                                         ;;PageHelpComponent-CartPage;Link;HelpParagraphComponent-CartPage;Help Section for Cart Page;PageHelpComponent-CartPage
 
 INSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];name;active;cmsComponents(&componentRef)
                          ;;HelpSlot-CartPage;Help Section Cart Page;true;PageHelpComponent-CartPage;

When I am trying to sync my content slot, I am getting sync error.If I replace the custom component with the OOTB component (e.g Paragraph Component), it wroks as expected.

Accepted Solutions (0)

Answers (0)