Inheriting parsys supertype, but overriding cq:editconfig | Community
Skip to main content
dVd3189
Level 2
December 6, 2017
Solved

Inheriting parsys supertype, but overriding cq:editconfig

  • December 6, 2017
  • 8 replies
  • 3366 views

Hello everyone. I explain my problem. I have a component and i use the parsys supertype from wcm/foundation.

But my question is: Is it possible to keep use the core parsys, and then include another editconfig to the component that use the parsys?

I dont want to make a parsys component and then use it for everything.

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by abhishekagg19

You can create a "_cq_childEditConfig.xml" config under your main component which contains the parsys component.and control the buttons available for the parsys editbar through cq:actions

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"

    cq:actions="[edit]"

    jcr:primaryType="cq:EditConfig">

    <cq:listeners

        jcr:primaryType="cq:EditListenersConfig"

        afteredit="REFRESH_PAGE"

        afterinsert="REFRESH_PAGE"/>

</jcr:root>

8 replies

smacdonald2008
Level 10
December 6, 2017

IN your custom component - what is your exact super resource type?

There should be no reason why you would need to create a custom parsys.

dVd3189
dVd3189Author
Level 2
December 6, 2017

My component is a column with a parsys as resource type. And the supertype of this component is parbase.

Its ok to have parsys, but i just want to remove some options in the edit bar. Thats why

dVd3189
dVd3189Author
Level 2
December 7, 2017

Does anyone have an idea about this?

Hemant_arora
Level 8
December 7, 2017

Can you share some code here or atleast elaborate steps you are tring to do ?

Your requirement is unclear.

my question is: Is it possible to keep use the core parsys, and then include another editconfig to the component that use the parsys?

Do you want to have an edit bar on the parsys placeholder ?

dVd3189
dVd3189Author
Level 2
December 7, 2017

Exactly. Im using the core parsys in my component, its a column container that has parsys. But i want o inject another edit bar like the parsys one but without "delete".

smacdonald2008
Level 10
December 7, 2017

You want to overlay the Parsys component and drop that into your container component. In your parsys - you want to remove the delete button - that is what you want?

abhishekagg19Adobe EmployeeAccepted solution
Adobe Employee
December 7, 2017

You can create a "_cq_childEditConfig.xml" config under your main component which contains the parsys component.and control the buttons available for the parsys editbar through cq:actions

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"

    cq:actions="[edit]"

    jcr:primaryType="cq:EditConfig">

    <cq:listeners

        jcr:primaryType="cq:EditListenersConfig"

        afteredit="REFRESH_PAGE"

        afterinsert="REFRESH_PAGE"/>

</jcr:root>

December 28, 2018

I have been struggling with this exact problem for three days now. Thank you for this solution!