Rearrange components having editConfig in a page | Community
Skip to main content
Level 4
March 7, 2017
Solved

Rearrange components having editConfig in a page

  • March 7, 2017
  • 6 replies
  • 4358 views

We have a page with multiple components dragged in a page, something like below

- Page
-- Component 1
-- Component 2
-- Component 3
-- Component 4

Now when we are trying to place Component 3 before Component 1 or something like this, AEM is not allowing to move the components, when there is editConfig present on the components. When there is no editConfig component, then movement or rearrangement works fine. 

We have not provided CRX acess to content authors and we don't want to rearrange components order from CRX. Let me know if there is way to handle this in components with editConfig.

Thanks
- Sandeep

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 daniel_henriqu1

Ok.

So adding insert to cq:action would make the components rearrangable (DnD to move them) in both Classic and Touch UI.

Regards,

Daniel.

6 replies

daniel_henriqu1
Level 4
March 7, 2017

Hi, Sandeep.

Is this related to the default value of cq:actions for cq:EditConfig?

Does adding copymove to cq:actions help you in any way?

http://labs.6dglobal.com/blog/2014-01-08/the-great-and-powerful-cq-editconfig/

Regards,

Daniel.

Level 4
March 8, 2017

Hi Daniel,

Thanks for inputs. It was to do with cq:actions only. I had copymove but not insert. The reference link you mentioned in the post has mention of insert also and that worked. You can update this information in the answer, would mark that as correct, as that would help community refer the correct answer at the top of the post.

Regards,
Sandeep 

daniel_henriqu1
Level 4
March 8, 2017

Hi, Sandeep.

So making it "insertable" has solved the issue, right?

Out of curious: if you keep insert, but  remove copymove, would it still work? Or, in the end, do you need both of them?

Regards,

Daniel.

daniel_henriqu1
daniel_henriqu1Accepted solution
Level 4
March 8, 2017

Ok.

So adding insert to cq:action would make the components rearrangable (DnD to move them) in both Classic and Touch UI.

Regards,

Daniel.

Level 4
March 8, 2017

daniel_henrique wrote...

Ok.

So adding insert to cq:action would make the components rearrangable (DnD to move them) in both Classic and Touch UI.

Regards,

Daniel.

 

Yes, the earlier message got deleted by mistake

dan_klco
Level 4
February 22, 2018

FYI - since labs.6dglobal.com is down, here's a link to the same article on the cq:editconfig on my personal blog:

https://www.danklco.com/posts/2014/01/08/the-great-and-powerful-cq-editconfig/