Couple of doubts w.r.t OSGI configurations | Community
Skip to main content
Level 9
March 22, 2016
Solved

Couple of doubts w.r.t OSGI configurations

  • March 22, 2016
  • 3 replies
  • 752 views

Hi All,

Couple of doubts as below :

1] In the author instance, setting WCMMode =  Disabled in "Day CQ WCM Filter" , will make it to behave as publish instance. Is that correct ?

2] In "Apache Sling Resource Resolver Factory" , there is a section "URL Mappings". It also has description along with it. But not quite getting it. What exactly is the purpose of this setting.

Any thoughts on this will be helpful.

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 Lokesh_Shivalingaiah

1. As @kautuksahni mentioned wcmmode=disabled will hide all the authoring panels which looks close to publish instance.

2. 'URL Mappings' in Sling Resource Resolver configuration can be used to map or change your application URL 

ex: if you want to remove /content/abc/en/ to / , you can configure as /content/abc/en/:/ so that your URL will be mapped accordingly

If you access abc.com/, then it would render /content/abc/en/ based on your webserver domain mapping.

3 replies

kautuk_sahni
Community Manager
Community Manager
March 22, 2016

Hi

For Question 1:

//

if we add a parameter to your query string, wcmmode=disabled

For example: http://localhost:4502/content/geometrixx-outdoors/en.html?wcmmode=disabled

This will hide all of the authoring tools. It's as close as you can get to how a page looks on a publish on an author instance.

Be sure to remove cf# from the path.

Link:- http://stackoverflow.com/questions/27431582/preview-in-author-instance

 

You can add a button in your sidekick to make page wcmmode disabled.

Link:- http://experience-aem.blogspot.in/2014/05/aem-cq-561-add-button-to-sidekick-bottom-toolbar.html

 

Thanks and Regards

Kautuk Sahni

 

Kautuk Sahni
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
March 22, 2016

1. As @kautuksahni mentioned wcmmode=disabled will hide all the authoring panels which looks close to publish instance.

2. 'URL Mappings' in Sling Resource Resolver configuration can be used to map or change your application URL 

ex: if you want to remove /content/abc/en/ to / , you can configure as /content/abc/en/:/ so that your URL will be mapped accordingly

If you access abc.com/, then it would render /content/abc/en/ based on your webserver domain mapping.

askdctmAuthor
Level 9
March 23, 2016

Hi Kautuk/Lokesh,

Thank you for your reply.