Skip to Content
avatar image
Former Member

Generate links for portal pages.


I am trying to develop a portal page, which will contain links to all other pages in the portal.

Ideally when a user clicks on one of the link, the correct page/tab should open up in the portal.

My problem is how to generate the links for existing pages in the portal.

Has anybody done a similar thing?

Help greatly appreciated

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 27, 2004 at 07:19 AM

    Hi Philip,

    did you try this with NavigationTargat=...


    The regular URL for launching the portal is http://portalserver/irj. To implement URL navigation:


    1. From the Portal Catalog, select the page with which you want to launch the portal.

    2. From the Quick Info pane below the Portal Catalog, copy the name (PCD URL value) of the page and save in a text editor, replacing the string PCD with ROLES://.

    3. Open your browser and to the default portal URL, add the following string:

    /index.html?NavigationTarget=<value saved in text editor>

    4. Save the new URL, which you can then use to launch your portal.


    Hope this helps,


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2004 at 10:18 AM

    Hi Philip,

    If you are using EP6 SP2, then you can consult the Documentation under Java Development role tab. Therein, SAP has provided a similar example, with the necessary logic too!



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You can create an Abstract Portal Component

      public class myProgram extends AbstractPortalComponent{

      public void doContent(

      IPortalComponentRequest request, IPortalComponentResponse response)


      IPortalComponentContext myContext = request.getComponentContext();

      IPortalComponentProfile myProfile = myContext.getProfile();

      // property name="targetOne" value="ROLES://portal_content/roleName/myWorksetOne/myPageOne"/>

      String strTargetOne = myProfile.getProperty("targetOne");

      //property name="targetTwo" //value="ROLES://portal_content/roleName/myWorksetTwo/myPageTwo"/>

      String strTargetTwo = myProfile.getProperty("targetTwo");

      IPageContext myPageContext =PageContextFactory.createPageContext(request, response);

      Form myForm = myPageContext.createFormDocument("myForm");

      String linkone = "Link one Name";

      String linktwo = "Link two Name";

      String navtargetOne =

      "<div id=\"smi\"><A HREF=\""

      + linkOne

      + "\" onclick=\"return P arent.EPCM.doNavigate('"

      + strTargetOne

      + "',"

      + 0

      + ",null,null);\">"

      + linkone

      + "</A></div>";

      String navtargetTwo =

      "<div id=\"smi\"><A HREF=\""

      + linkTwo

      + "\" onclick=\"return parent.EPCM.doNavigate('"

      + strTargetTwo

      + "',"

      + 0

      + ",null,null);\">"

      + linktwo

      + "</A></div><table border=0 cellspacing=0 cellpadding=0><tr><td height='3px'></td></tr></table>";

      ItemList iteml = new ItemList();





      response.write("<table><tr><td width='2px'></td><td>");