Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Inheriting parsys supertype, but overriding cq:editconfig

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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>

1368407_pastedImage_0.png

View solution in original post

0 Replies

Avatar

Level 10

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.

Avatar

Level 2

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

Avatar

Level 8

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 ?

Avatar

Level 2

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

Avatar

Level 10

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?

Avatar

Correct answer by
Employee

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>

1368407_pastedImage_0.png

Avatar

Level 1

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