Unable to add clientlibs to the new tab in the sidekick in Touch UI by overlay

shaheenas113483

07-03-2019

I have added a new tab and functionality in the sidekick, so I have overlayed /libs/wcm/core/content/editor/jcr:content/sidepanels/edit/items/tabs/items, and added a new tab into it. but I am unable to add clientlibs to it to add my functionality.

Accepted Solutions (1)

Accepted Solutions (1)

shaheenas113483

10-03-2019

Well, I found that we can add functionalities like we create content component to the page and add it to the tabs node of the editor.html page.

Answers (9)

Answers (9)

Prince_Shivhare

10-03-2019

/libs/cq/ui/widgets/source/widgets/wcm/Sidekick.js

the path itself is saying it's classic ui. try on touch ui clientlib.

/libs/wcm/core/content/editor - in this path I can see one clientlib is loaded. please check there.

~ Prince

shaheenas113483

08-03-2019

Yes, I have tried to add a js file to the existing clientlibs, with a line of 'window.alert', but it loads when I goto Classic UI->Websites (http://localhost:/siteadmin), it doesnt work when I edit a page in touch ui. The path I tried is : path: /libs/cq/ui/widgets/source/widgets/wcm/Sidekick.js and clientlib:  /libs/cq/ui/widgets

shaheenas113483

08-03-2019

In this path:/libs/wcm/core/content/editor/jcr:content/sidepanels/edit/items/tabs/items, editor is of type 'cq:page'. If we check below they have added tabs and each tab has its functionalities, I have added my tab there but I am unable to add my functionality to it. How did they add those functionalities to those tabs?

Yes, by sidekick i mean the left rail.

Prince_Shivhare

08-03-2019

I can see editor.html - /libs/wcm/core/content/editor

is nothing but a cq:page. can you please try doing the same thing as we do for our website content pages.

Also, sidekick means left rail you are talking about right?

and if you already have a clientLib then I would suggest that overlay and modified them.

~ Prince

shaheenas113483

08-03-2019

There are a few clientlibs, but all of it are for ClassiC UI, and I am working in AEM 6.4 Touch UI. Other than clientlib how else can I add functionality to the new tab, like TextField, Button, etc. @Prince Shivhare