前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Spartacussampledataaddon AddOn学习笔记

Spartacussampledataaddon AddOn学习笔记

作者头像
Jerry Wang
发布2020-11-09 18:36:26
4140
发布2020-11-09 18:36:26
举报

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.

这个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.

代码语言:javascript
复制
INSERT_UPDATE CmsSiteContext;code[unique=true];name[lang=$language]
;LANGUAGE;"language"
;CURRENCY;"currency"

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

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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-11-08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档