<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)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲AV日韩AV鸥美在线观看| 色偷偷亚洲女人天堂观看欧| 99re在线这里只有精品免费| 亚洲av片不卡无码久久| 日本视频免费在线| a级在线免费观看| 中文字幕无码精品亚洲资源网久久| 亚洲AV中文无码乱人伦在线视色| 三上悠亚电影全集免费| 亚洲人成网站看在线播放| 国产精品亚洲美女久久久| 免费AA片少妇人AA片直播| 四虎精品成人免费视频| 亚洲伊人久久大香线焦| 一区二区三区亚洲视频| 亚洲性线免费观看视频成熟| 免费人人潮人人爽一区二区| 久久综合亚洲色一区二区三区 | 国产大片免费网站不卡美女 | 偷自拍亚洲视频在线观看| 久久夜色精品国产亚洲AV动态图| 成人毛片18岁女人毛片免费看| 你懂的免费在线观看| 亚洲av永久中文无码精品综合 | 亚洲av无码有乱码在线观看| 亚洲va久久久噜噜噜久久男同 | 久久亚洲精品成人综合| 日韩在线免费看网站| 4399影视免费观看高清直播| 亚洲精品偷拍视频免费观看| 亚洲日韩精品无码AV海量| 亚洲AV无码不卡无码| 亚洲国产天堂久久综合| 精品久久久久久久免费人妻 | 在线看片免费人成视频播| 日本亚洲欧美色视频在线播放| 久久亚洲精品成人AV| 国产精品亚洲视频| 免费成人黄色大片| 日本特黄特色免费大片| 在线观看无码AV网站永久免费|