Jim Grisanzio wrote:
On 03/26/09 08:58, Michelle Olson wrote:
On 03/25/09 16:27, Mike Kupfer wrote:
I did some experiments with the ON Developer Reference and the XWiki
testbed at hub.opensolaris.org.  I can create an HTML attachment of the
DevRef, and I can link to the top level of the attachment, but there
doesn't appear to be any way to link to anchors that are inside the
attachment.

Am I missing something, or is this a known limitation of XWiki?

Hi Mike,

Thanks for giving this a whirl, I'm not sure if this is the right answer, but you might try this markup:

[[Click here to jump to anchor "someid">#someid]]

{{id name=someid /}} The "someid" anchor where to jump

I came across this 'macro' today for anchors, but not sure if it works for attachments. Chris P. will know if there is another/better way.


I found Mike's test file and added some text after Mike's. This is how I linked to the attachment:
http://hub.opensolaris.org/bin/view/Community_on/


I think Jim's response provides an answer, but perhaps anchors warrant
some more explanation.

With XWiki 1.0 syntax, link anchors for titles are created
automatically, for other anchors you need to use html <a name=anchor>
which can then be referenced as [Link text>page#anchor]

Michelle's example is an XWiki 2.0 syntax IdMacro.
http://code.xwiki.org/xwiki/bin/view/Macros/IdMacro

XWiki 2.0 syntax will be the preferred syntax once we have deployed XWiki 1.8.

http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax
http://code.xwiki.org/xwiki/bin/view/Macros/

In the specific case of the ON devref_toc page, you might want to make use of the Table Of Contents macro
http://code.xwiki.org/xwiki/bin/view/Macros/TocMacro


Chris

_______________________________________________
website-discuss mailing list
[email protected]

Reply via email to