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.

Monday, March 4, 2013

Steps to export and import WCM libraries


Export:


  1. Log in to the WAS Integration Solution Console using Administrator id.
  2. Go to Resources>Resource Environment>Resource Environment Providers
  3. Select WCM WCMConfigService > Custom Properties
  4. Update/Create the property "export.libraryname". Set the value as string containing library names separated by semi colon.Example: export.libraryname=library_1;library_2;library_3
  5. Go to directory /IBM/Websphere/wp_profile/ConfigEngine
  6. Enter command ./ConfigEngine.sh export-wcm-data -DWasPassword=password -DPortalAdminPwd=password -Dexport.directory=/home/user/exportdir -Dexport.singledirectory=true
Transfer the file
  1. Compress the above directory using the zip command: zip -r exportdir.zip /exportdir 
  2. Transfer the zip file to the target server
  3. Unzip it in some folder say /home/user/importdir
Import
  1. Ensure target server does not have same libraries created in it. If present kindly delete
  2. Go to /IBM/Websphere/wp_profile/ConfigEngine
  3. Enter command ./ConfigEngine.sh import-wcm-data -DWasPassword=password -DPortalAdminPwd=password -Dimport.directory=/home/user/importdir

This is suitable for Initial setup of Environment where we need to transfer bulky contents. For further updates kindly use Syndication.