Tuesday 7 July 2015

Adding newly created component in sidekick / siderail

Namastey, 

Creating a component is not enough if it cannot be used on the pages. In order to display the component on the page we have following two ways :
  1. Directly include the component on page rendering jsp/sightly as shown below
<cq:include path="comp1" resourceType="mySite/components/myComp" />

  2. Enable the component in sidekick and then drag it to the parsys to use it.
        Only those component which has either cq:inplaceEditing node or  cq:dialog node can be enabled to appear in sidekick,because a component is logically not needed if author doesn't input any content to it.

    Now component is available but still we need to enable it to see in sidekick:

  1. 1. Go to design view of page ( available only in classic UI ).
  2. 2. Go to 'Edit' of parsys on which you want to drag -drop your component.
  3. 3. List of available components will show up , you can check your component to show up in sidekick.
  4. 4. Exit the pop-up and you will see the checked component showing up in sidekick.
Dhanywaad !




Basic Sling Model Exporter

/* Open a page which is having component /apps/project/components/page/page /content/project/en/jcr:content.model.json Don't miss...