Spartacussampledataaddon AddOn学习笔记

简介: Spartacussampledataaddon AddOn学习笔记

link:https://sap.github.io/spartacus-docs/spartacussampledataaddon/#removing-unused-pages-content-slots-and-cms-components


The spartacussampledataaddon AddOn creates new WCMS base sites for Spartacus that share the same product catalog with the default electronics, apparel, and powertools sites, but with content catalogs that have been modified specifically for Spartacus requirements.


该addon创建新的WCMS base site,同默认的electronics,apprel和powertools site一样,共享同样的product catalog,同时也包含为Spartacus量身定做的content catalog.


The Spartacus Sample Data AddOn is versioned and released with the Spartacus storefront library. You can download the latest version by clicking on spartacussampledataaddon.zip in the Assets section of the most recent release of the storefront library.


image.png


这个addon做了三件事情:


Creates new base sites called electronics-spa, apparel-spa, and powertools-spa, if these sample stores are configured in your extensions.xml. See the site.impex file for each base site in the resources/spartacussampledataaddon/import/stores folder for details.


Creates a new ContentCatalog and its catalogVersions (Staged and Online). See the catalog.impex file for each base site in the resources/spartacussampledataaddon/import/contentCatalogs/ folder for details.


Creates a CatalogVersionSyncJob that can sync [samplestore]ContentCatalog:staged to [samplestore]-spaContentCatalog:staged. See the sync.impex file for each base site in the resources/spartacussampledataaddon/import/contentCatalogs folder for details.


The CmsSiteContext enum was created in SAP Commerce 1905. It is a dynamic enumeration that contains the available site context. Spartacus has two site contexts: language and currency.


Spartacus的CmsSiteContext:language和currency.


image.pngimage.png

image.png

The Spartacus header now contains HelpLink, ContactUsLink and SaleLink CMSlink components, which have been added to a new SiteLinks slot.


image.png


Because this slot has been added in the header, the new SiteLinks slot has been added to every template. The above image shows the newly added CMSlink components.


相关文章
|
7月前
|
数据采集 容器
xpath实战
xpath实战
33 0
|
存储 SQL 前端开发
JPA3|学习笔记
快速学习JPA3
127 0
JPA3|学习笔记
|
存储 前端开发 Java
JPA 6|学习笔记
快速学习JPA 6
128 0
JPA 6|学习笔记
|
SQL 前端开发 Java
JPA2|学习笔记
快速学习JPA2
79 0
JPA2|学习笔记
|
存储 前端开发 JavaScript
JPA 7|学习笔记
快速学习 JPA 7
93 0
 JPA 7|学习笔记
|
存储 JSON 前端开发
JPA 8|学习笔记
快速学习JPA 8
132 0
JPA 8|学习笔记
|
存储 前端开发 NoSQL
JPA 5|学习笔记
快速学习JPA 5
111 0
JPA 5|学习笔记
|
存储 Java 关系型数据库
JPA1|学习笔记
快速学习JPA1
114 0
JPA1|学习笔记
|
存储 自然语言处理 开发者
WhitespaceAnalyzer|学习笔记
快速学习 WhitespaceAnalyzer
63 0
WhitespaceAnalyzer|学习笔记
|
机器学习/深度学习 存储 人工智能
GraphLearn on PAI|学习笔记
快速学习 GraphLearn on PAI。
101 0
GraphLearn on PAI|学习笔记