<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2>Chaitanya -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2>Do you mean you want an anchor which points to the
navigation links, or you want your navigation links to include anchors
themselves? Either way, if the dynamic generation you're talking about is
in a JSP under your control, you can add whatever code you like to get the
result you want.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2>OpenCms dynamic links are typically generated
</FONT></SPAN><SPAN class=360331906-13052006><FONT face=Arial color=#0000ff
size=2>using something like
<cms:link>/path/to/abc.html<cms:link>. To add an 'outgoing'
anchor reference, just write
<cms:link>/path/to/abc.html</cms:link>#def. (You ought to be
able to include the anchor inside the <cms:link> tags too, and that should
work.) To add an anchor to the links so that something else could navigate
to them, just insert the using HTML near them.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=360331906-13052006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of
</B>Chaitanya<BR><B>Sent:</B> 13 May 2006 06:52<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] Re:Anchors in
navigation<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi Robert</DIV>
<DIV> </DIV>
<DIV>Thanks for the quick reply. The navigation menu on the left hand side is
dynamically generated by opencme, the links to each of the navigation link has
to be changed from "abc.html" to "abc.html#def". I need to add an anchor to the
links in the navigation menu. </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Hope this is clear</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Chaitanya</DIV>
<DIV> </DIV>
<DIV><BR clear=all> </DIV><PRE>Hi Chaitanya!
Chaitanya schrieb:
><I> I need to add anchors to the navigation link, for eg if the navigation link
</I>><I> is "/abc/adc.html ", i want it to be "/abc/adc.html#qwe" , is this possible
</I>><I> in opencms 6.2.
</I>
No, I'm afraid this task is far more complex than what can be achieved
with OpenCms and the underlying technologies.
;-)
Just kidding, what's the problem exactly? Java comes with an operator
'+' for String object which you can use to construct the link:
<a href="<%= ne.getResourceName() + "#qwe" %>" ... >...</a>
HTH,
Robert
</PRE><BR>-- <BR> Each of us has our own unique flaw. But
it's the cracks and flaws we each have that make our lives together so very
interesting and rewarding. ~Author Unknown<BR></BODY></HTML>