How to open a component dialog with custom button or link? | Community
Skip to main content
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 4 replies
  • 1126 views

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.

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 Sham_HC

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

4 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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

eug_kAuthor
Level 2
October 16, 2015

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?

Sham_HC
Level 10
October 16, 2015

[img]Link.png[/img]

eug_kAuthor
Level 2
October 16, 2015

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.