Skip to Content
0
Former Member
Nov 30, 2017 at 12:14 AM

how to have One Site with two different contentcatalogs

72 Views

Hi guys, I have a requirement to switch between two different contentcatalogs in one site. One catalog is for old view, the other on is for new experience. Is there a way to implement a catalogswitch. i have a boolean flag that will be checked at every request. Thanks for any advice. i tired some thing like this

         if(oldLook) { catalogVersions.add(catalogVersionService.getCatalogVersion(CLASSIFICATION, 
         CATALOG_VALUE));
         catalogVersions.add(catalogVersionService.getCatalogVersion(CATALOG_PRODUCT_CA, 
          CATALOG_VALUE));
         catalogVersions.add(catalogVersionService.getCatalogVersion(CATALOG1_CONTENT, 
          CATALOG_NTD_VALUE));
         catalogVersionService.setSessionCatalogVersions(catalogVersions);}
         else {
          catalogVersions.add(catalogVersionService.getCatalogVersion(CLASSIFICATION, 
          CATALOG_VALUE));
          catalogVersions.add(catalogVersionService.getCatalogVersion(CATALOG_PRODUCT_CA, 
          CATALOG_VALUE));
          catalogVersions.add(catalogVersionService.getCatalogVersion(CATALOG2_CONTENT, 
          CATALOG_NTD_VALUE));
          catalogVersionService.setSessionCatalogVersions(catalogVersions);}
          }


Best, Khaja K Shaik