eZ Community » Forums » Developer » how to set a link to the contents on...
expandshrink

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

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

Saturday 28 June 2003 1:35:19 pm - 3 replies

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

Wednesday 02 July 2003 5:36:50 pm

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

Thursday 03 July 2003 1:50:06 pm

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???

Thursday 03 July 2003 3:50:13 pm

Hi,

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

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

Regards,
wenyue

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from