cancel
Showing results for 
Search instead for 
Did you mean: 

BreadCrumbs vs HistoryTab

Former Member
0 Kudos

Hi all,

i'd like to know what is the different between the properties

<b>com.sap.portal.navigation.showHistory</b> and <b>com.sap.portal.navigation.showBread</b> that you can find in <i>portalapp.xml</i> belonging to <i>com.sap.portal.navigation.pagetoolbar.par</i>.

I have to display a breadcrumbs that show the path of the current iView from root and I don't want to show the history of my navigation.

for example:

<i>Home

Tab1 - Tab2 - Tab3 -</i>

If I navigate from "tab1" to "tab3" my breadcrumb shows

<i>Home --> Tab1 --> Tab3 </i>

but I have to display that changes in this way

Before

<i>Home --> Tab1 </i>

After

<i>Home --> Tab3 </i>

Thanks in advance,

Gianluca Barile.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gianluca,

The Portal breadcrumb is a history breadcrumb, it's not a structured list of where you are in the moment. To create this hierarchical structure you should work with the tag library. See External Facing Portal for details.

A good place to start is: https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2453. [original link is broken] [original link is broken]

See below a code example of the breadcrumb you are looking for:

<%@ tagliburi="NavigationTagLibrary"prefix="nav"%>

<div id="breadcrumb">
    <nav:iterateNavNodesInSelectedPath>
        <nav:navNodeAnchornavigationMethod="byURL"/>
        <nav:ifHasMoreIterations> | </nav:ifHasMoreIterations>
    </nav:iterateNavNodesInSelectedPath>
</div>

Cheers,

Marcelo

Former Member
0 Kudos

Hi Marcelo,

with your answer I solved my problem.

Thank you.

Gianluca Barile

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Gianluca,

the difference is primarily the UI; see http://help.sap.com/saphelp_ep60sp2/helpdata/en/8b/c2ca3e76d34e64b3ee0f612755da61/frameset.htm for details (the showHostory is for the dropdown list, the showBread for the breadcrumb element).

> but I have to display that changes in this way

There is no such control within the standard, but you could develop this by your own. Anyhow, the question is if it really makes sense, as your display list also can be read from the chosen navigation points...

Hope it helps

Detlev