SAP Spartacus的b2cLayoutConfig
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus的b2cLayoutConfig
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
源代碼位置:b2c-storefront.module.ts:
import { LayoutConfig } from '../../layout/config/layout-config';export const b2cLayoutConfig: LayoutConfig = {// deferredLoading: {// strategy: DeferLoadingStrategy.DEFER,// intersectionMargin: '50px',// },layoutSlots: {header: {lg: {slots: ['SiteContext','SiteLinks','SiteLogo','SearchBox','SiteLogin','MiniCart','NavigationBar',],},slots: ['PreHeader', 'SiteLogo', 'SearchBox', 'MiniCart'],},navigation: {lg: { slots: [] },slots: ['SiteLogin', 'NavigationBar', 'SiteContext', 'SiteLinks'],},footer: {slots: ['Footer'],},LandingPage2Template: {pageFold: 'Section2B',slots: ['Section1','Section2A','Section2B','Section2C','Section3','Section4','Section5',],},ContentPage1Template: {slots: ['Section2A', 'Section2B'],},CategoryPageTemplate: {pageFold: 'Section2',slots: ['Section1', 'Section2', 'Section3'],},ProductListPageTemplate: {slots: ['ProductLeftRefinements', 'ProductListSlot'],},ProductGridPageTemplate: {slots: ['ProductLeftRefinements', 'ProductGridSlot'],},SearchResultsListPageTemplate: {slots: ['Section2','ProductLeftRefinements','SearchResultsListSlot','Section4',],},SearchResultsGridPageTemplate: {slots: ['Section2','ProductLeftRefinements','SearchResultsGridSlot','Section4',],},ProductDetailsPageTemplate: {lg: {pageFold: 'UpSelling',},pageFold: 'Summary',slots: ['Summary','UpSelling','CrossSelling','Tabs','PlaceholderContentSlot',],},CartPageTemplate: {slots: ['TopContent', 'CenterRightContentSlot', 'EmptyCartMiddleContent'],},AccountPageTemplate: {slots: ['BodyContent', 'SideContent'],},LoginPageTemplate: {slots: ['LeftContentSlot', 'RightContentSlot'],},ErrorPageTemplate: {slots: ['TopContent', 'MiddleContent', 'BottomContent'],},OrderConfirmationPageTemplate: {slots: ['BodyContent', 'SideContent'],},MultiStepCheckoutSummaryPageTemplate: {slots: ['TopContent', 'BodyContent', 'SideContent', 'BottomContent'],},CheckoutLoginPageTemplate: {slots: ['RightContentSlot'],},}, };進入SAP Spartacus的contact頁面:
從Chrome開發者工具觀察page請求,找到template id:ContentPage1Template
在b2c-layout-config.ts里找到了對應的實現:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP Spartacus的b2cLayoutConfig的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中兴视通是什么卡(中兴B860AV2.1
- 下一篇: 河洛群侠传草席在哪买