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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:28:42
Script start
Timing: Jan 31 2025 01:28:42
Module start 'layout'
Timing: Jan 31 2025 01:28:42
Module start 'content'
Timing: Jan 31 2025 01:28:42
Module end 'content'
Timing: Jan 31 2025 01:28:42
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.2656151.2266
Module start 'layout' 0.00530.0041 739.4922220.7344
Module start 'content' 0.00930.0121 960.2266997.7266
Module end 'content' 0.02140.0015 1,957.953133.9922
Script end 0.0230  1,991.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002912.7867140.0002
Check MTime0.00114.5790140.0001
Mysql Total
Database connection0.00072.871510.0007
Mysqli_queries0.00219.198430.0007
Looping result0.00000.178410.0000
Template Total0.00114.810.0011
Template load0.00093.729410.0009
Template processing0.00021.035310.0002
Override
Cache load0.00062.484510.0006
General
dbfile0.00031.439980.0000
String conversion0.00000.044640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs