Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a component to show up in the list of draggable components (for parsys)?

Tags:

aem

I'm trying to create a component that I can drag into a parsys component, but for some reason it doesn't show up in the list of available components (see images below). I'm pretty new to AEM, so if I sound ignorant, I probably am (edits to this question are welcome).

enter image description here

enter image description here

like image 887
Trevor Avatar asked Aug 12 '14 22:08

Trevor


People also ask

How do you allow components in parsys in AEM?

In CRXDE, under /etc/designs/[your design]/jcr:content, you can define nodes to represent each of your templates & their paragraphs & list the allowed components for each. The format is a node for each template that contains a node for each parsys (both [nt:unstructured]).

What is parsys?

parsys – It is a placeholder called “Paragraph System”, where we can drag and drop or add other components or scripts at page level. iparsys – It is inherited paragraph system, it is similar to parsys except that it allows to inherits parent page “paragraph system”.


2 Answers

The first and the foremost requirement for your component to be draggable is to have either a dialog or design_dialog.

Second, it shouldn't be part of the component group .hidden. It is fine if it doesn't have a componentGroup property at all, you can find it under NO GROUP DEFINED.

Set the allowedParents property of type String[] to */parsys.

And finally make sure that the jcr:title is different from the name of your component. They shouldn't be the same. For Eg: If the name of the component is text then the title should at least be Text.

I haven't worked in the touchUI, but for sidekick this holds good. So I guess it should work for your case too.

like image 129
rakhi4110 Avatar answered Jan 01 '23 12:01

rakhi4110


First: Make sure you have a dialog defined.

Second: Ensure that there is a componentGroup defined that doesn't start with a period. ANY group name that starts with a period will hide the component.

Third: Make sure the component is enabled with design mode.

AEM Mastery blog post about getting a component to show in the sidekick

like image 21
Brenn Avatar answered Jan 01 '23 13:01

Brenn