Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to open a component dialog with custom button or link?

Avatar

Level 2

Hi guys!

I'd like to open a component dialog when I click a button or a link. Could you please give me some pieces of advice how to implement it? cq:layout rollover and editbar are not suitable for me.

I've found out, that it is opened with this code:

CQ.wcm.EditBase.showDialog(this, CQ.wcm.EditBase.EDIT);

where this - is CQ.wcm.EditRollover object for a corresponding component. So all that I need - somehow create or get somewhere CQ.wcm.EditRollover object?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Take a look at the out of the box sample [1].  There is a link "Edit this entry" on click of it opens component dialog.

[1]   http://localhost:4502/content/geometrixx/en/blog/2009/06/geometrixx_user_grou.html

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Take a look at the out of the box sample [1].  There is a link "Edit this entry" on click of it opens component dialog.

[1]   http://localhost:4502/content/geometrixx/en/blog/2009/06/geometrixx_user_grou.html

Avatar

Level 2

Hi Sham, thank you for reply.

But I didn't see such link there

[img]2013-09-20_054511.jpg[/img]

Could you please specify where is it placed?

Avatar

Level 2

Thank you.

But I don't have the edit link there.

I'll try use cq:layout editbar and customize buttons view with CSS and JS.