美文网首页SAPSAP
Spartacussampledataaddon AddOn学习

Spartacussampledataaddon AddOn学习

作者: _扫地僧_ | 来源:发表于2021-02-12 10:44 被阅读0次

    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.

    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.

    更多Jerry的原创文章,尽在:"汪子熙":


    相关文章

      网友评论

        本文标题:Spartacussampledataaddon AddOn学习

        本文链接:https://www.haomeiwen.com/subject/upthbktx.html