Skip navigation.

Using the Visitor Tools

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Adding Visitor Tools to a Custom Application

 


Adding Visitor Tools to a New Portal Application

WebLogic Portal Platform Edition installs with a pre-built portal application called sampleportal, which includes, a set of JavaServer Pages (JSPs) that enable visitors to set properties on personalized views of the portal.

Use the following procedure to add these visitor tools to a new portal application, which can then be customized.

  1. In the native file system, copy the following directories inclusively:
  2. In WebLogic Workshop Platform Edition, open the new Portal application.
  3. In the Portal Designer, select the main book.
  4. Figure 2-1 Select Main Book


     

    Select Main Book


     
  5. In the Properties Designer, set the Editable property to Edit in Menu. The Mode Properties heading is added to the available properties.
  6. Click on the Content URI and browse to the /visitorTools/visitorTools.portion file.
  7. The three JSPs inside the visitorTools directory, visitorToolsMain, visitorToolsEditPage, visitorToolsEditBook, contain a reference to a javascript file called dialog.js in the sampleportal application. Edit the source for each of these files, changing the path to refer to the new location of this file.
  8. Change this:

    <script language="JavaScript" src="/sampleportal/visitorTools/dialog.js" type="text/javascript"></script>

    to this:

    <script language="JavaScript" src="/<yourNewPortalProject>/visitorTools/dialog.js" type="text/javascript"></script>
  9. When this portal runs, (not in development mode, but in a live desktop) the edit icon will appear on the main book. Clicking this icon takes the user to the Visitor Tools.

Note: The Visitor Tools JSPs only work when the portal server is running, and must be accessed by a user logged into the desktop.

 

Back to Top Previous Next