Skip to main content
Oct 16, 2015 2:26 AM UTC
Solved

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

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.
JustinEd3Accepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Oct 16, 2015 2:26 AM UTC

It help. Thank you so much.

Translate
JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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.

Translate
Oct 16, 2015 2:26 AM UTC

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?

Translate
Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC