on 2018 Dec 31 12:40 PM
When using Smart Edit and having multiple sites that use the same content catalog it seems that Smart Edit always uses the preview url for the first site entry in the the sites combo even if you have selected another one.
I assume that is not the expected behaviour?
Request clarification before answering.
There is a solution but it requires creating 2 new SmartEdit components based on LandingPage and CatalogDetails.
1. In new landingPage.html change <catalog-details> to
<catalog-details data-catalog="catalog"
data-is-catalog-for-current-site="$last"
data-site-id="landingCtl.model.site"></catalog-details>2. In new catalogDetails.js in change component bindings to:
bindings: {
catalog: '<',
isCatalogForCurrentSite: '<',
siteId: '<'
}3. In new catalogDetailsTemplate.html change <catalog-version-details> to
<catalog-version-details data-catalog="$ctrl.catalog"
data-catalog-version="catalogVersion"
data-active-catalog-version="$ctrl.activeCatalogVersion"
data-site-id="$ctrl.siteId != null ? $ctrl.siteId : $ctrl.siteIdForCatalog"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope, we might be forced to use the Multi Country setup just to fix it ;( which is not perfect.
Even more annoying this issue is there since 2017!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm also facing the same issue with 1811 version and I did set the preview attributes properly but still always the same CMSSIte is set as the current site.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , I am also facing the same issue in a smart edit, did you find any solution for this issue?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi did you try the below settings
$fullPathElectronics=https://electronics.cloud/ $fullPathApparelUK=https://apparel-uk.cloud/ $fullPathApparelED=https://apparel-de.cloud/
This ensures that when user clicks on the HOMEPAGE link after logging in, user navigates to the correct storefront homepage UPDATE CMSSite;uid[unique=true];previewURL ;electronics;$fullPathElectronics/?site=electronics ;apparel-uk;$fullPathApparelUK/?site=apparel-uk ;apparel-de;$fullPathApparelED/?site=apparel-de
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.