Inheriting parsys supertype, but overriding cq:editconfig | Community
Skip to main content
dVd3189
Level 2
Dec 6, 2017 4:38 PM UTC
Solved

Inheriting parsys supertype, but overriding cq:editconfig

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.
abhishekagg19Accepted solution
Employee
Dec 7, 2017 7:52 PM UTC

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

New Participant
Dec 28, 2018 6:06 PM UTC

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

Translate
abhishekagg19Accepted solution
Employee
Dec 7, 2017 7:52 PM UTC

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>

Translate
smacdonald2008
Level 10
Dec 7, 2017 4:50 PM UTC

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?

Translate
dVd3189
dVd3189Author
Level 2
Dec 7, 2017 2:00 PM UTC

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".

Translate
Hemant_arora
Level 8
Dec 7, 2017 1:20 PM UTC

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 ?

Translate
dVd3189
dVd3189Author
Level 2
Dec 7, 2017 9:56 AM UTC

Does anyone have an idea about this?

Translate
dVd3189
dVd3189Author
Level 2
Dec 6, 2017 5:02 PM UTC

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

Translate
smacdonald2008
Level 10
Dec 6, 2017 4:42 PM UTC

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.

Translate