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

Smart Edit Wrong Site used for preview

Former Member
0 Kudos
1,761

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?

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

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"/>
former_member706284
Discoverer
0 Kudos

Hello Pawel!

How did you override the landing page? Looks like it is injected with legacy router, and I could not find how to override it.

zuzanna_bialecka
Product and Topic Expert
Product and Topic Expert
0 Kudos

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!!

zuzanna_bialecka
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

Former Member
0 Kudos

have you found any solution?i am also facing the same

0 Kudos

Hi , I am also facing the same issue in a smart edit, did you find any solution for this issue?

Thanks

Hi did you try the below settings

$fullPathElectronics=https://electronics.cloud/ $fullPathApparelUK=https://apparel-uk.cloud/ $fullPathApparelED=https://apparel-de.cloud/

Setup site preview url for each storefront

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