cancel
Showing results for 
Search instead for 
Did you mean: 

Tag for Page "Name"

Former Member
0 Kudos

I have created a custom Page Layout. In my layout I have an html div where I would like to display the "Name" of the Page object.

I found the tag to display an iView Title, but I cannot find the code to display the Name of the page. Can anyone help?

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found a way to use Java to get the Page Title.

<%

IPortalComponentRequest pcReq = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);

IPortalNode portalNode = pcReq.getNode().getPortalNode();

NavigationEventsHelperService helperService = (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);

INavigationNode currNode = helperService.getCurrentLaunchNavNode(pcReq);


String nodeTitle = currNode.getTitle(pcReq.getLocale());

%>

<span class="vbHeader2"><%=nodeTitle%></span>

Answers (1)

Answers (1)

saar_dagan
Employee
Employee
0 Kudos

Hi Joe,

here you can find the Tags references:

http://help.sap.com/saphelp_nw04/helpdata/en/42/efdb279a563ee7e10000000a1553f7/frameset.htm

notice the page title attribute.

regards,

Saar

Former Member
0 Kudos

Thank you Saar Dagan for your help.