cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Folder Name in Page Title

Former Member
0 Kudos

Hi there

Is it possible to display the folder name in which an iview is kept, in the title.

Example, we have a role, with its structure

1. HR Workbench

1.1 Home

1.1.1 Headcount

1.1.1.1 Previous Fiscal

1.1.1.2 Selected Fiscal

1.1.2 Employee Membership

1.1.2.1 Previous Fiscal

1.1.3 Employee Transfers

etc ....

now, when the Headcount Previous Fiscal iview is opened, the title is shown as "Previous Fiscal"

Ideally we would like to see "Headcount / Previous Fiscal" displayed, or something similar.

The 1 way is to have long names in the iview name, but that looks bad as you then don't see the entire iview name in the dynamic navigation section, and we want to keep the dynamic navigation section as small as possible to maximise the area available for reports.

Yes, I know you can collapse the navigation, but we're working with less than brilliant users.

Any other ideas?

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Andrew,

this is not possible by standard means. Anyhow, you could modify the iView tray implementation to achieve this...

Hope it helps

Detlev

Former Member
0 Kudos

Thanks ... not necessarily the answer they will like to hear, but that's just tough ...

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Andrew,

Do you want to set the title in the iView tray or the title in the page title bar?

Daniel

Former Member
0 Kudos

Either would be fine, although we would prefer to switch off the tray for the iview, so first prize would be to update the page title.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Andrew,

What version portal?

Daniel

detlev_beutner
Active Contributor
0 Kudos

Hi Daniel, hi Andrew,

ahhh, I realise the direction of this discussion...

So with the light framework page together with the layout tag lib and using the nav taglib for getting the actual navigation path, you maybe could achieve what you are thinking of, check out http://help.sap.com/saphelp_nw04/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm and around. It needs SP14.

Anyhow, the light framework page together with the nav taglib is still quite restricted, for example collaboration romms do not work, which for most customers is a knock-out.

Hope it helps

Detlev

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Andrew,

The layout tag library lets you create a custom tray -- in which you can display whatever you want for the title.

NOTE: This does not require the light framework page. You can use it in the regular framework page.

As an example, the following uses the navigation and layout tag libraries to create an iView tray which displays the title of the iView. If the parent of the iView is a folder, it also displays the folder name:

<nav:launchedNavNode navNode="myNode">
  <nav:navNodeParent navNode="myParentNode">
		
    <nav:ifNavNodeIsFolder>
      <%=myParentNode.getTitle(request.getLocale())%> --
    </nav:ifNavNodeIsFolder>
		
  </nav:navNodeParent>
  <lyt:IViewTitle/> (<lyt:IViewFamily/>)
</nav:launchedNavNode>

See the link provided by Detlev for the layout tag library, as well as this link for navigation tag library http://help.sap.com/saphelp_nw04/helpdata/en/42/f35146a7203255e10000000a1553f7/frameset.htm.

Hope this helps.

Daniel

P.S.: This all assumes you have SP14 or higher.

Answers (0)