How to open a link page when user press the button in sidekick? | Community
Skip to main content
October 16, 2015
Solved

How to open a link page when user press the button in sidekick?

  • October 16, 2015
  • 4 replies
  • 1095 views

Hi, I added an button into the sidekick it will open a new page if user press it, so i how to make this click event work?

BTW, i let the sidekick to add new button by the way of modify file sidekick.js, i have no idea to deal with it.

Anyone could help see it? Please told me your solution. Thanks a lot.

[img]sidekick.png[/img]

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 JustinEd3

As the link from Sham showed, you don't need to modify sidekick.js. In your JavaScript, add your custom action to CQ.wcm.Sidekick.DEFAULT_ACTIONS.

4 replies

Sham_HC
Level 10
October 16, 2015
October 16, 2015

Hi Sham,

If developer want to add a button[Add to cart] to all website pages default, it seems only to modify file sidekick.js rather than using clientlib because JS in clientlib just for any page of that specified template, right?

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

As the link from Sham showed, you don't need to modify sidekick.js. In your JavaScript, add your custom action to CQ.wcm.Sidekick.DEFAULT_ACTIONS.

October 16, 2015

It help. Thank you so much.