on ‎2019 Feb 05 2:34 PM
Hi Experts,
I have a component which has a nested component collection (It is created using many to many relationship) . For the first time, When I do the sync, the nested components are synced properly.
Now, If I delete one of the nested components and do sync from Smart Edit, it is not getting reflected in Online version.
Is synchronization of deleted items supported in smartedit?
Hybris version : 6.7
Thanks and Regards,
.
Request clarification before answering.
Hi ,
You should try to extend AbstractCMSComponentModelVisitor which is responsible for collecting items for synchronization and add the collection of your nested items.
You can take a look at NavigationComponentModelVisitor as an example.
Define your class as a spring bean and then add a mapping for it
<bean depends-on="cmsVisitors" parent="mapMergeDirective">
<property name="key">
<util:constant static-field="your.component.ComponentModel._TYPECODE"/>
</property>
<property name="value" ref="yourVisitorBean"/>
</bean>
As you can see there is a map named cmsVisitors with the mapping
Kind regards,
Mykola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.