on 2018 Jul 24 1:08 AM
Hi,
I am currently working with the new multi country SmartEdit capabilities. I do have the following Catalog Structure: - MasterContentCatalog - EUContentCatalog (supercatalog is MasterContentCatalog) - USContentCatalog (supercatalog is MasterContentCatalog)
For matter of simplicity, assume that all ContentSlots, Pages and Templates are stored in the MasterContentCatalog. On the top left corner I do have a Logo that is placed in a Shared Content Slot (Slot of a template). Now I want to change the logo for all pages that relate to the template, but only for the USContentCatalog. Currently I do not find any solution to do it. The only thing I am able to find is the ability to change Page Content Slots, but not Template Content Slots.
Does anyone have a solution for that? Or is it just not supported right now?
Kind regards, Stephan
Request clarification before answering.
Hello,
It is possible to override Shared Content Slot in any Child Content Catalog using undocumented feature of the `ContentSlot` and `CMSPageService`.
You have to specify `originalSlot` of the `ContentSlot` which will be used by `CMSPageService.getSortedMultiCountryContentSlots(..)`.
Take a note that:
Sample impex for overriding shared Footer Slot:
UPDATE GenericItem[processor = de.hybris.platform.commerceservices.impex.impl.ConfigPropertyImportProcessor]; pk[unique = true]
$contentCatalog = $config-eu.content.catalog
$contentCV = catalogVersion(CatalogVersion.catalog(Catalog.id[default = $contentCatalog]), CatalogVersion.version[default = Staged])[default = $contentCatalog:Staged]
$contentCVOnline = catalogVersion(CatalogVersion.catalog(Catalog.id[default = $contentCatalog]), CatalogVersion.version[default = Online])[default = $contentCatalog:Online]
$contentCatalogCountry = $config-eu.it.content.catalog
$contentCVCountry = catalogVersion(CatalogVersion.catalog(Catalog.id[default = $contentCatalogCountry]), CatalogVersion.version[default = Staged])[default = $contentCatalogCountry:Staged]
INSERT_UPDATE ContentSlot; uid[unique = true]; name ; active; originalSlot(uid, $contentCVOnline)[unique = true]; $contentCVCountry[unique = true]
; FooterSlot-EU_it ; Footer Slot ; true ; FooterSlot ;Regards,
Mykhailo Lytvyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.