[xwiki-users] Linking to different sections of one page from another?
Hi, Is it possible, if so, how can I link to different sections of one page from another one? Many thanks, 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.
On Tue, May 31, 2011 at 15:33, andyp <andy_pikey@hotmail.com> wrote:
Hi,
Is it possible, if so, how can I link to different sections of one page from another one?
You have a section parameter in include macro. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro
Many thanks, 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi Andy, On May 31, 2011, at 3:33 PM, andyp wrote:
Hi,
Is it possible, if so, how can I link to different sections of one page from another one?
Yes it's possible, see http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HLinks Thanks -Vincent
Many thanks, Andy
On Tue, May 31, 2011 at 15:54, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Tue, May 31, 2011 at 15:33, andyp <andy_pikey@hotmail.com> wrote:
Hi,
Is it possible, if so, how can I link to different sections of one page from another one?
You have a section parameter in include macro.
See http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro
Sorry don't know why I understood "include" instead of "link".
Many thanks, 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
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"]] 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.
On Tue, May 31, 2011 at 16:25, andyp <andy_pikey@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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi Thomas, Yes that did the trick!! Thanks very much for your help. And thanks to all the developers - XWiki is awesome, I love it!! Rgds, 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.
On Tue, May 31, 2011 at 16:41, andyp <andy_pikey@hotmail.com> wrote:
Hi Thomas,
Yes that did the trick!! Thanks very much for your help.
And thanks to all the developers - XWiki is awesome, I love it!!
Thanks, always good to hear :D
Rgds, 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hello, To ease navigation in big wiki pages, I'm using links to "anchors heading automaticly generated by xwiki". The drawback is that if the "heading title" change, the previous created link is broken. Is there any solution to avoid this drawback ? And happy new year to all xwiki community members, -- 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.
Hi! Yes, put your own anchors by ID macro :-) It's a bit more work to do, but sometimes it is very useful. Пятница, 4 января 2013, 7:58 -08:00 от xrichard <ldmpub@gmail.com>:
Hello,
To ease navigation in big wiki pages, I'm using links to "anchors heading automaticly generated by xwiki". The drawback is that if the "heading title" change, the previous created link is broken.
Is there any solution to avoid this drawback ?
And happy new year to all xwiki community members,
-- 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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Kind regards, Dmitry
On Jan 4, 2013, at 5:09 PM, Haru <haru_mamburu@mail.ru> wrote:
Hi!
Yes, put your own anchors by ID macro :-) It's a bit more work to do, but sometimes it is very useful.
Yep, see http://extensions.xwiki.org/xwiki/bin/view/Extension/Id+Macro Thanks -Vincent
Пятница, 4 января 2013, 7:58 -08:00 от xrichard <ldmpub@gmail.com>:
Hello,
To ease navigation in big wiki pages, I'm using links to "anchors heading automaticly generated by xwiki". The drawback is that if the "heading title" change, the previous created link is broken.
Is there any solution to avoid this drawback ?
And happy new year to all xwiki community members,
participants (5)
-
andyp -
Haru -
Thomas Mortagne -
Vincent Massol -
xrichard