Pages

Tuesday, June 17, 2014

How to programatically design mode select a component to be included in the sidekick

The Problem

You want to have a component programatically available to authors without having to enter design mode and add a component for the template.

The Solution

Go to your relevant template's design mode. For this example, we will use the Geometrixx site, located at:

/etc/designs/geometrixx/jcr:content/contentpage/par

Then edit the components property to contain the path to your component, for example:
/apps/geometrixx/components/customcomponent

Save, and reload the editor, and you should have the component added to your list.


1 comment:

  1. Thank you so much for this information. This is such a great thing you shared with us. Now I want check this idea. I wish to use this in my outdoor media work.

    ReplyDelete