Expand my Community achievements bar.

SOLVED

Couple of doubts w.r.t OSGI configurations

Avatar

Level 9

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

3 Replies

Avatar

Administrator

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

Avatar

Correct answer by
Level 10

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.

Avatar

Level 9

Hi Kautuk/Lokesh,

Thank you for your reply.