on ‎2018 Mar 16 8:31 AM
Hey Guys,
We have a carousel component assigned to a page template. This carousel component has a list of Image Component.
On adding/removing the img component in carousel component from cmscockpit if we try to sync the parent component(carousel component) only then the sync fails but if we sync the whole catalog then everything works fine.
Also,
on doing that above mentioned change the component shows red but the page itself shows green. I would intuitively expect the sync status of page to turn red if any of the component inside is red.
Have tried have the list as a collection as well as a relation, it failed for both cases. Any idea why this would be happening ? Error from cronjob logs just shows the pks and that is all.
Request clarification before answering.
Use a custom container component extending AbstractCMSComponentContainer(no need for attributes within the itemtype since the abstract container can hold a list of CMS components under the attribute "simpleCMSComponents"). This allows you to accomodate multiple components in the container. The multiple components are inserted into the container using impex (assign the components to simpleCMSComponents attribute). Also, ensure that entries are added in cmscockpit-services.xml. In your case, add the value: "CustomCMSComponentContainer.simpleCMSComponents" under the entry keys "AbstractCMSComponent", "AbstractPage" and "ContentSlot".
Also make necessary entries for the component that will reside within this container since sync won't work if the second level component doesn't detect the changes. Suppose a component of type "SubComponent" has a media attribute, add the value "SubComponent.mediaAttribute" under the above mentioned entry keys.
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.