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 the 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 the sidekick, because a component is logically not needed if the author doesn't input any content to it.
Now the component is available but still, we need to enable it to see in sidekick:
1. 1. Go to the design view of the page ( available only in Classic UI ).
2. 2. Go to 'Edit' of parsys on which you want to drag-drop your component.
3. 3. A 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.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.