Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to disable Sidekick in sightly page component

Avatar

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohanr80993572
Level 2

10-11-2015

We can hide/disable sidekick in author mode in page component by removing/commenting or by not including "/libs/wcm/core/components/init/init.jsp" in any of the jsps of the page or its super/parent resource. But how to achieve the same in sightly page component? What/where is the line of code that enables/disables the sidekick in a sightly page? Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

10-11-2015

Hi,

In sightly also this file will be included, its will like this,

<sly data-sly-include="/libs/wcm/core/components/init/init.jsp" data-sly-unwrap/>

If you have created project via eclipse plugin, you can find it at location 

\apps\[project]\components\structure\page\partials\headlibs.html

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

11-11-2015

Take a look at /libs/wcm/foundation/components/page/author.html at line 39.

thanks

Avatar

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohanr80993572
Level 2

19-11-2015

Hi Dubey,

Thanks, it was helpful...

Avatar

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
mohanr80993572
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohanr80993572
Level 2

10-11-2015

Hi Dubey,

Thanks for your reponse. What you said is true. But following is my usecase.

1. I created a template using the page component wcm/foundation/components/page and created a page using this template. When I access this page, I am able to see the sidekick. I want to hide this sidekick. Where is the code that is enabling this sidekick?