cancel
Showing results for 
Search instead for 
Did you mean: 

use of <nav:navNodeAnchor> tag library

Former Member
0 Kudos

Hi folks,

I am trying to display the breadcrumb feature of portal navigation using navigation tag library <nav:navNodeAnchor> in my custom header iview.

The code goes something like this.

<nav:iterateNavNodesInSelectedPath>

<nav:navNodeAnchor navigationMethod="byURL"

anchorAttributes="class='textstyle2'"/>

<nav:ifHasMoreIterations>></nav:ifHasMoreIterations>

</nav:iterateNavNodesInSelectedPath>

But here, when I try to apply the css class as part of anchor attributes, it is not getting reflected in the output. Basically, it always displays the breadcrumbs in the standard colors defined.

Can somebody please help me on this.

Regards

Srinidhi

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Srinidhi,

As the expected behaviour is what is also documented (for example under http://help.sap.com/saphelp_nw04s/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm ), it <i>should</i> work. Check the HTML code which is generated on the created page; if the "textstyle2" string is also missing or at the wrong place, check if you are able to correct the entry maually (in the latter case), otherwise open an OSS message...

Hope it helps

Detlev

PS: @Prem - See the linke above, it's not really a CSS attribute but a generic possibility to inject anything (for example: CSS class references) into the generated html anchor. Anyhow, I also expect that the text gets rendered in the created HTML page but the resolution does not work, for example as the CSS itself is not referenced or something like that...

Answers (1)

Answers (1)

Former Member
0 Kudos

To solve your problem What you need to do is define your css class something like:

#mycss{

....

...

}

And put you entire navigation tag library code within:

<div id="mycss">

</div>

without the css attribute in it.

Im not sure whether the css attribute of the tag library is some part of an SAP delivered stuff. If anyone knows this please shed some light on it.

Message was edited by:

Prem Mascarenhas

<div id="mycss">

</div>

Message was edited by:

Prem Mascarenhas

Hi I dont know why my message did not reach completely:

I meant put your taglib code with div tags:

div id="myCss"

/div