Thursday, 6 November 2014

Modifying default content while creating Virtual portal

Virtual Portal :- While creating virtual portal it takes default content and creates it. You can control the content which to be created while going for new virtual portal.

Mandatory content :- There are some content which should be there and cannot be deleted

  • Content Root (wps.content.root)
  • Login (wps.Login)
  • Administration (ibm.portal.Administration).
Steps to replace the default xml script to alter VP content :-
Step1 :-  Export the file VirtualPortal.zip from your portal server.  Log in to the WebSphere Integrated Solutions Console. Click Applications -> Application Types -> Assets andS elect VirtualPortal.zip .

    Select checkbox and Click Export.

    Unzip the folder then you will find 3 xml files as given below


Step2 :- Make a copy of the exported .zip file, and name the copy as LimitedVirtualPortal.zip .Add your custom virtual portal .xml script to your copy of the .zip file. For example, the script file can be LimitedVirtualPortal.xml. Then repack the zip file.
    Step3 :- Log in to the WebSphere Integrated Solutions Console. Click Applications -> Application Types -> AssetsClick Import then Select your updated copy of the .zip file for  LimitedVirtualPortal.zip  .then  Click Next -> Next -> Finish.

    Step 4 :- Editing virtual manager portlet setting
    1. Open the Manage Virtual Portals portlet by clicking Administration -> Virtual Portals -> Manage Virtual Portals.
    2. Open the Manage Virtual Portals portlet menu by clicking the dropdown arrow and select the option Edit Shared Settings.
    3. Edit the SCRIPT_INIT_VP parameter of the portlet. Replace the current value with the name of your custom XML script and custom asset compressed (.zip) file. 
    4. You can specify this as a file inside a WebSphere Application Server asset by using a syntax such as this:
       WebSphere:assetname=LimitedVirtualPortal.zip :LimitedVirtualPortal..xml

      where my_VirtualPortal.zip is the name of your asset and my_InitVirtualPortalScript.xml is the name of a file inside the asset. Do not update the default asset VirtualPortal.zip installed with WebSphere Portal. Instead, create and maintain a separate second asset independent of the default assetVirtualPortal.zip .
    5. Click OK twice to save your changes.

    No comments:

    Post a Comment

    Custom single threaded java server

     package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...