cancel
Showing results for 
Search instead for 
Did you mean: 

can we able to create custom component using link component and banner component and paragraph component

Former Member
0 Kudos
345

can we able to create custom component using combination of three components like link component and banner component and paragraph component

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Yes you can able to create custom component that it can contains banner,paragraph and link component.

You should add this code blog to the core-items.xml then you should run ant clean all && ant updatesystem -DtypeSystemOnly=true

             <itemtype code="CMSNewsComponent" extends="SimpleCMSComponent" generate="true" autocreate="true"
                       jaloclass="com.viking.core.jalo.CMSNewsComponent">
                 <description>Used to display offers on homepage</description>
                 <attributes>
                     <attribute type="localized:java.lang.String" qualifier="headerText">
                         <modifiers read="true" write="true" optional="false" />
                         <persistence type="property" />
                     </attribute>
                     <attribute type="CMSImageComponent" qualifier="contentImage">
                         <modifiers read="true" write="true" optional="false" />
                         <persistence type="property" />
                     </attribute>
                     <attribute type="CMSParagraphComponent" qualifier="contentText">
                         <modifiers read="true" write="true" optional="false" />
                         <persistence type="property" />
                         <description>The content text of news</description>
                     </attribute>
                 </attributes>
             </itemtype>