On Tue, May 31, 2011 at 16:25, andyp <andy_pikey(a)hotmail.com> wrote:
Hi Thomas,
Thanks for that link - I didn't know XWiki could do that (nice!). However,
I don't want to include the content on the current page - just the link that
jumps to a given section. Something like an HTML anchor link (I tried
inserting the HTML macro but no joy).
I noticed that there is an "anchor" attribute to XWiki links but I can't
get
that to work either, maybe I'm using it wrong? On the sandbox page I have
amended the first two links:
* [[Sandbox Test Page 1 - Section
1>>Sandbox.TestPage1||anchor="HSection1"]]
* [[Sandbox Test Page 1 - Section
2>>Sandbox.TestPage1||anchor="HSection2"]]
Note that this is xwiki/2.1 syntax, if you are using xwiki/2.0 you
should do the following;
* [[Sandbox Test Page 1 - Section 1>>Sandbox.TestPage1#HSection1]]
* [[Sandbox Test Page 1 - Section 2>>Sandbox.TestPage1#HSection2]]
On TestPage1 I have created a long page of dummy text with two "Title 2"
heading:
== Section 1 ==
== Section 2 ==
Following the links on the first page always takes me to the top of the
second page. I have even tried adding the following ID macros in the target
page and linking to them from the first page:
{{id name="sec1"/}}
{{id name="sec2"/}}
Any help appreciated.
Cheers,
Andy
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Linking-to-different-sections-of-one-page…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne