1 Reply Latest reply on Dec 11, 2012 1:42 PM by Yogesh Upadhyay

    custom tab for page propertis-> basic in sidekick

    coolpaul Level 1

      Anybody knows how to customize the page properties tab in sidekick based on the template..

        • 1. Re: custom tab for page propertis-> basic in sidekick
          Yogesh Upadhyay Level 4

          See example under /libs/foundation/components/page. In this case you have to create a template that will extend  /libs/foundation/components/page in resourceType section this template is pointing to. Your main component will have dialog that will override page properties. For example something like this

           

           

          <items jcr:primaryType="cq:WidgetCollection">

           

           

          <tabs jcr:primaryType="cq:TabPanel">

           

           

          <items jcr:primaryType="cq:WidgetCollection">

           

          <advanced jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/basePage/tab_advanced.infinity.json" xtype="cqinclude"/>

          <basic jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/basePage/tab_basic.infinity.json" xtype="cqinclude"/>

           

          <bgimage jcr:primaryType="cq:Widget" allowUpload="false" cropParameter="./bgmage/imageCrop" fileNameParameter="./bgimage/fileName"fileReferenceParameter="./bgimage/fileReference" mapParameter="./bgimage/imageMap" name="./bgimage/file" requestSuffix="/bgimage.img.png"rotateParameter="./bgimage/imageRotate" title="Background image" uploadText="Drag and drop images from DAM" uploadUrl="/tmp/upload/*"xtype="html5smartimage"/>

          <blueprint jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/tab_blueprint.infinity.json" xtype="cqinclude"/>

          <cloudservices jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/tab_cloudservices.infinity.json" xtype="cqinclude"/>

          <image jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/tab_image.infinity.json" xtype="cqinclude"/>

          <livecopy jcr:primaryType="cq:Widget" path="/libs/foundation/components/page/tab_livecopy.infinity.json" xtype="cqinclude"/>

           

          <YOURTABNAME jcr:primaryType="cq:Widget" title="SOMETHING" xtype="panel">

           

           

          <items jcr:primaryType="cq:WidgetCollection">

           

           

          <rtetext jcr:primaryType="cq:Widget" fieldLabel="test" height="100" name="./test" xtype="richtext">

           

           

          <rtePlugins jcr:primaryType="nt:unstructured">

           

           

          <format jcr:primaryType="nt:unstructured"/>

           

          <links jcr:primaryType="nt:unstructured"/>

          <justify jcr:primaryType="nt:unstructured"/>

          <lists jcr:primaryType="nt:unstructured"/>

          </rtePlugins>

          </rtetext>

          </items>

          </YOURTABNAME>

          </items>

          </tabs>

          </items>

          </dialog>

           

          You can also extend individual tabs based on your need.

           

          Yogesh

          www.wemblog.com