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

Synchronization status do not update after editing referenced components within an component.

Former Member
0 Likes
1,913

Hi,

after modifying a referenced component within a component the synchronization status of the containing component is not updated from synchronized to not synchronized. We have set the root types to CMSItem and CMRelation. The synchronization properties are set according to the description in the hybris wiki.
 Does anybody has an idea what the problem could be?

cheers

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

Try to edit your cmscockpit-services.xml, you should normally find two tags as list like this

 <entry key="AbstractPage">
     <list>
         <value>NameOfYourParentComponent.nameOfChildComponentsInsideYourParentModel</value>
     </list>
 </entry>
 <entry key="AbstractCMSComponent">
     <list>
         <value>NameOfYourParentComponent.nameOfChildComponentsInsideYourParentModel</value>
     </list>
 </entry>

Example: Container.elements

Run an update system for the extension where you edit the xml.

Best regards.

Former Member
0 Likes

Hi Othman,

I had one similar kind of issue. I have tried the above solution. But still it is not working. Do we need to have relation maintained in model for implementing the solution.

I have the child component added as collection. Please advise.

Thanks, Meera

Former Member
0 Likes

Hi Othman,

it works!!!

Thank you

Answers (3)

Answers (3)

Former Member
0 Likes

Great !! happy for you :)

Former Member
0 Likes

Hi Othman,

it works!!!

Thank you

Former Member
0 Likes

Hi Meera,

I think it's better to implement the relation by the tag in your items.xml

 <relation generate="true" code="MyNewRelation" autocreate="true"
     localized="false">
     <sourceElement type="MyContainerComponent" qualifier="theParent"
         cardinality="one" />
     <targetElement type="MyChildComponent" qualifier="theChilds"
         cardinality="many" ordered="true" />
 </relation>

Be aware of the name of the attribute used in my first post:

  • For the parent component use the Type name

  • For the child component use the qualifier

MyContainerComponent.theChilds

Off course, don't forget to run an ant all, then update your system (hac) check the extension of the modified items.xml, if still don't work, go to your wcms cockpit and from "Menu" reset the user preference, if still don't work, restart your server.

I hope this will work , let me know.

Othman.