Thursday, March 14, 2013

Piece of Content Servlet for URI resolution


From Wps 6.0.1 onwards we have URI resolution service that helps to construct preview url of the web content in a most efficient manner.

Assume that you have content in WCM in the following hierarchy.

Testlibrary
|-----Site1
            |---Sitearea1
                        |-----content1

To preview the content we could use following url



In the above /poc or /mpoc is mapped to a servlet which is part of latest URI resolution service.

Now goto the page where you added the JSR286 Web content Viewer Portlet. The beauty of this servlet is it makes use of “web content mappings” defined under the portal page properties “Advanced Options”>”Edit Web content Mappings”

Add “Sitearea1” in to the list. This will inform POC servlet that all contents under the “Sitearea1” will use this page as the target for rendering the Web contents.

No comments:

Post a Comment