Skip to main content
mohanr80993572
Level 2
Nov 10, 2015 2:02 PM UTC
Solved

How to disable Sidekick in sightly page component

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Nov 10, 2015 2:11 PM UTC

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

4 replies

edubey
edubeyAccepted solution
Level 10
Nov 10, 2015 2:11 PM UTC

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

Translate
mohanr80993572
Level 2
Nov 11, 2015 7:32 AM UTC

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?

Translate
edubey
Level 10
Nov 11, 2015 8:17 AM UTC

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

thanks

Translate
mohanr80993572
Level 2
Nov 20, 2015 7:18 AM UTC

Hi Dubey,

Thanks, it was helpful...

Translate