日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何创建SAP Commerce Cloud Page Templates

發(fā)布時間:2023/12/19 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何创建SAP Commerce Cloud Page Templates 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Page Template

Step 1 - You would need to first create a PageTemplate, which define the layout for pages using the following fields below.

首先創(chuàng)建一個新的Page Template:

INSERT_UPDATE PageTemplate;$contentCV[unique=true];uid[unique=true];name;frontendTemplateName;restrictedPageTypes(code);active[default=true]
  • frontendTemplateName is used to define the JSP that shuold be used to render the page for pages with multiple layouts.

  • restrictedPageTypes is used to restrict templates to page types.

ContentSlotNames

Step 2 - Each PageTemplates can have multiple content slot names which helps with the positioning, where we can state a list of valid components for the slot.

Page Templates可以分配多個content slots. 每個slot包含多個Components.

There exists standard set of slots, such as SiteLogo, HeaderLinks MiniCart and NavigationBar, and a number of specific slots for each template.

有些slots是所有page共享的,比如SiteLogo,HeaderLinks,NavigationBar. 有的slot是某些頁面特有的。

INSERT_UPDATE ContentSlotName;name[unique=true];template(uid,$contentCV)[unique=true][default='CategoryPage'];validComponentTypes(code);compTypeGroup(code)

Below the INSERT_UPDATE, we can see a number of content slot name available for the specific PageTemplate as specified in the statement default=‘CategoryPage’.

validComponentType or compTypeGroup defined the valid components for the slot.

ContentSlotForTemplate

Step 3 - We need to bind the content slots to page templates as it defines the relationship between team.

這一步,將Content Slot分配給template.

INSERT_UPDATE ContentSlotForTemplate;$contentCV[unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,$contentCV)[unique=true][default='ProductDetailsPageTemplate'];contentSlot(uid,$contentCV)[unique=true];allowOverwrite

Create pages using the template

最后一步,基于之前創(chuàng)建的page template,創(chuàng)建一個新的page.

Step 4 - Finally, pages are created using the template

INSERT_UPDATE ContentPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);label;defaultPage[default='true'];approvalStatus(code)[default='approved'];homepage[default='false'];previewImage(code, $contentCV)[default='ContentPageModel__function_preview']

masterTemplate: By specifying the page template you have created, you can create a page.

總結(jié)

以上是生活随笔為你收集整理的如何创建SAP Commerce Cloud Page Templates的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。