Skip to Content
author's profile photo Former Member
Former Member

How can I add a new Attribute to a wcms component

I have create a new component with 3 personal Attributes (prouctId, addiionalDocuments, banner).

After I intinalize the System I can't see the attributes in the cms-cockpit but I can see the attributes into the HMC on the component.

Have anyone a idea what I have to change?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Aug 12, 2016 at 10:45 AM

    Hello Torben,

    It is possible that the Config media file is not updated with your changes. Verify this from hmc > Media > Search with "SpecialOfferComponent" in the identifier.

    Click on the result to activate the editor and preview the xml file. This should be the latest one. If you donot see your changes, upload the latest version of the editorArea_SpecialOfferComponent.xml or execute a platform update with project-data checked for your custom cockpit extension (Assuming convention method is followed over configuration).

    If you already see the latest file in the media, it could be a cache issue. Try clearing the browser cache or access the custom cockpit in an incognito mode.

    Hope this helps.

    Br, Shwetha

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2016 at 02:22 PM

    Hello Torben,

    Have you defined a specific Editor for the displaying the new attributes?

    You could refer to Editor_ParagraphElement_CockpitGroup.xml and its configuration for CMSParagraphComponent in ui_components.csv in the cmscockpit as references.

    Hope this helps.

    Br, Shwetha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2016 at 07:36 AM

    I have write this editorArea_SpecialOfferComponent.xml

     <group qualifier="General" visible="true" initially-opened="true">
         <label key="cockpit.config.label.General" />
         <property qualifier="CMSItem.name"/>
         <property qualifier="CMSItem.catalogVersion" editor="shortListEditor"/>
         <property qualifier="AbstractCMSComponent.visible"/>
     </group>
    
     <group qualifier="editorial" visible="true" initially-opened="true">
         <label key="config.general.editorial" />
         <property qualifier="SpecialOfferComponent.productIds" />
         <property qualifier="SpecialOfferComponent.stoererImageUrls"/>
         <property qualifier="SpecialOfferComponent.additionalDocumentUrls"/>
         <property qualifier="SpecialOfferComponent.additionalPriceInfo"/>
     </group>
    
     <group qualifier="visibility" visible="true" initially-opened="false">
         <label key="config.general.contextvisibility" />
         <property qualifier="AbstractCMSComponent.restrictions">
             <parameter>
                 <name>allowCreate</name>
                 <value>true</value>
             </parameter>
         </property>
         <property qualifier="AbstractCMSComponent.onlyOneRestrictionMustApply"/>
     </group>
    
     <group qualifier="admin" visible="true" initially-opened="false">
         <label key="config.general.administration" />
         <property qualifier="CMSItem.uid"/>
         <property qualifier="AbstractCMSComponent.slots"/>
         <property qualifier="AbstractCMSComponent.container"/>
         <property qualifier="Item.pk" />
         <property qualifier="Item.creationTime" />
         <property qualifier="Item.modifiedtime" />
     </group>
    
     <custom-group
         class="de.hybris.platform.cockpit.services.config.impl.UnassignedEditorSectionConfiguration"
         qualifier="unassigned"
         initially-opened="false"
         visible="false">
         <label key="cockpit.config.label.Other" />
     </custom-group>
    
    
    
    

    But I don't see the Attributes also I see not the editorial-Area in the cms-cockpit if I will edit the Component by the cms-cockpit.

    I hope it more clear what I mean!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2016 at 12:07 PM
    -1

    Hey Thanks for your help!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.