Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
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
Gelöst! Gehe zu Lösung.
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>
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.
Zugriffe
Antworten
Likes gesamt
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
Zugriffe
Antworten
Likes gesamt
Does anyone have an idea about this?
Zugriffe
Antworten
Likes gesamt
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 ?
Zugriffe
Antworten
Likes gesamt
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".
Zugriffe
Antworten
Likes gesamt
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?
Zugriffe
Antworten
Likes gesamt
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>
I have been struggling with this exact problem for three days now. Thank you for this solution!
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten