<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    How to Create Templates

    CQ5 page templates are simply models used to create new pages. They can contain as little, or as much, initial content as needed, their role being to create the correct initial node structures, with the required properties (primarily sling:resourceType) set to allow editing and rendering.

    Creating a new Template (based on an existing template)

    Needless to say a new template can be created completely from scratch, but often an existing template will be copied and updated to save you time and effort. For example, the templates within Geometrixx can be used to get you started.

    1. Copy an existing template (preferably with a definition as close as possible to what you want to achieve) to a new node.

      [Note] Note

      Templates are usually stored in /apps/<website-name>/templates/<template-name>.

    2. Change the jcr:title of the new template node to reflect its new role. You can also update the jcr:description if appropriate.

    3. Copy the component on which the template is based (this is indicated by the sling:resourceType property of the jcr:content node within the template) to create a new instance.

      [Note] Note

      Components are usually stored in /apps/<website-name>/components/<component-name>.

    4. Update the jcr:title and jcr:description of the new component.

    5. Replace the thumbnail.png if you want a new thumbnail picture to be shown in the template selection list.

    6. Update the sling:resourceType of the template's jcr:content node to reference the new component.

    7. Make any further changes to the functionality or design of the template and/or its underlying component.

      Changes made to the /apps/<website>/templates/<template-name> node will affect the template instance (as in the selection list).

      Changes made to the /apps/<website>/components/<component-name> node will affect the content page created when the template is used.

    You can now create a page within your website using the new template.



    眼鏡蛇

    posted on 2013-06-25 15:50 眼鏡蛇 閱讀(207) 評論(0)  編輯  收藏 所屬分類: CQ5

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    導航

    統計

    常用鏈接

    留言簿(6)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产免费午夜a无码v视频| 91频在线观看免费大全| 丁香亚洲综合五月天婷婷| 国产一区二区三区免费| 亚洲人成电影在线播放| 国产免费播放一区二区| 中文字幕不卡亚洲| 99在线视频免费观看| 国产亚洲一区二区在线观看| a级片在线免费看| 亚洲视频在线免费观看| 99re这里有免费视频精品| 亚洲国产成人资源在线软件| 无人在线直播免费观看| 亚洲第一成年免费网站| 又粗又硬免费毛片| 特级做A爰片毛片免费看无码 | 日韩精品视频免费观看| 美女视频黄频a免费| 自拍偷自拍亚洲精品情侣| 最近新韩国日本免费观看 | 亚洲视频在线一区二区三区| 国产人在线成免费视频| 粉色视频成年免费人15次| 奇米影视亚洲春色| 四虎在线成人免费网站| 亚洲AV无码国产精品永久一区| 伊人久久亚洲综合| 国产a视频精品免费观看| 亚洲欧美在线x视频| 亚洲综合熟女久久久30p| 精品久久8x国产免费观看| 亚洲sm另类一区二区三区| 精品国产亚洲男女在线线电影| 99久久免费中文字幕精品| 亚洲人成网站在线播放2019| 亚洲熟女一区二区三区| 91精品免费国产高清在线| 一级视频免费观看| 久久精品国产99国产精品亚洲| 免费大片在线观看网站|