Forums / Developer / how to set a link to the contents on the same page????

how to set a link to the contents on the same page????

Author Message

M Farhan

Saturday 28 June 2003 4:35:19 am

Hello everyone,

I need to set a link (through <link> tag in the xml text field) to a heading on the same page as that of the link. Can anyone explain the same with the help of an example.

All the contents displayed on the page are through the xml text field, where the link is also declared and the text (heading) that needs to linked is also present in the xml text field.

Thanks in advance.

MF

Wenyue Yu

Wednesday 02 July 2003 8:36:50 am

Hi,

Here is the example.

<header anchor_name="foo">header</header>
...
...
<link href="content/view/full/this_article_node_id#foo>link text</link>

Hope it works for you.

Regards,
wenyue

M Farhan

Thursday 03 July 2003 4:50:06 am

Thanks for that, but isn't there any other tag other then <header> where i can specify the anchor_name like in <strong anchor_name="foo"> tag or <emphasize anchor_name="foo"> tag???

Wenyue Yu

Thursday 03 July 2003 6:50:13 am

Hi,

Syntax of anchor for header is very special and it only works for header. (<header anchor_name="foo">header</header>).

You can always use <anchor name="anchor_name" /> besides other tags to add an anchor.

Regards,
wenyue