Hi,

I'd say that right now you can more or less reliably name your internal link like this:

Say you have:

1.1.1 I am a cool subtitle

You can link to it using [Whatever>#HIamacoolsubtitle] (note that there is no space).

As a general rule the anchor name is #HSubtitlewithoutspaces (though I've no idea what happens if 2 anchors have the same name).

This will take you to Spacename/PageName#HIamacoolsubtitle , which hopefully is where you want to be.

I think your issue goes further than this, but this is a start...

Guillaume

On 16/05/07, THOMAS, BRIAN M (ATTSI) < bt0008@att.com> wrote:
I'll be happy to post a JIRA on that, though patching it is not something I have time or skill to attempt at the moment.  I know that a scrollto method exists that can subtract the height of the heading from the anchor's Y-coordinate, and I have made it work both in Firefox and IE, but of course I can put that in the request in case it helps the patcher.
 
That leaves still my main question, however:  is there a scheme for reliably composing an intra-document link to an XWiki heading?
 
I don't consider it a show-stopper, so if you can't reply immediately I can post another issue.  Indeed, it really is a bug/feature request to a) have the anchors named predictably and/or b) enhance the already too-cool-for-words link editor popup to list headings (and other anchors...?) existing on the page and format the link behind the scenes.  I realize this could be done immediately only for the current page, but hey, that's all Ineed right now...:>
 
brain[sic]
 


From: Vincent Massol [mailto:vincent@massol.net]
Sent: Wednesday, May 16, 2007 6:33 AM
To: xwiki-users@objectweb.org
Subject: Re: [xwiki-users] Intra-document links to XWiki headers in 1.0B3


On May 15, 2007, at 11:30 PM, THOMAS, BRIAN M (ATTSI) wrote:

I really like the WYSIWYG editor's "Add/edit link" feature.  One problem, though, is XWiki headings.  There are two problems generally:  first, it isn't intuitive how to name the link.  For example, for a level-2 XWiki heading (1.1 in Wiki markup, generates HTML h3 element of class "heading-1-1") named Styles, the fragment identifier was "HStyles".  Also, a level-1 (h2, class "heading-1") was also named by prepending an "H" to the heading text. Is this the way it's supposed to work, where in the "link" field I have to put "Hsomething" for a link to a heading called "something", unless there's another heading with that same text, which could be added after I compose that link and then what do I do...?
 
The other is that following the link causes the page to scroll to just below the heading text, which is a bit confusing.

I've also noticed that point. The anchor should be done just before the section, not just after. JIRA and patches are most welcome.

Thanks
-Vincent


--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto: xwiki-users-unsubscribe@objectweb.org
For general help: mailto: sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws




--
http://wikibc.blogspot.com/