| Author |
How to determine portal page ID?
|
|
|
| Hi,
anybody knows -
1. How to determine current portal page ID or unique name (where portlet is
installed)? Is there any API?
2. How to create a link (within portlet/jsp) to other portal page?
Thank you for any ideas.
| |
| Maik Weber 2005-01-19, 7:48 am |
| Alex wrote:
> Hi,
> anybody knows -
> 1. How to determine current portal page ID or unique name (where portlet is
> installed)? Is there any API?
You have to use the ModelAPI:
import com.ibm.portal.*;
import com.ibm.portal.navigation.*;
import com.ibm.wps.model.ModelUtil;
ModelUtil util = ModelUtil.from(request)
NavigationNode node =
(NavigationNode)util.getNavigationSelectionModel().getSelectedNode();
String id = node.getContentNode().getObjectID().toString();
String uniquename = node.getContentNode().getObjectID().getUniqueName()
> 2. How to create a link (within portlet/jsp) to other portal page?
Which version of WebSphere Portal are you using?
>
> Thank you for any ideas.
>
>
>
>
| |
|
| > > 2. How to create a link (within portlet/jsp) to other portal page?
>
> Which version of WebSphere Portal are you using?
Portal 5.1
| |
| Maik Weber 2005-01-19, 7:48 am |
| Alex wrote:
>
>
> Portal 5.1
>
>
Currently I don't have an 5.1 installation at hand. So, just have a look
into <WP_HOME>/shared/app/WEB-INF/tld/engine.tld. There should be a jsp
tag defined like urlGeneration. You can use this tag together with the
objectid of the other portal page. There should also be a tag which uses
the unique name of a page to create a link.
Maik
|
|
|
|