Tip #5 - How to create a link that points somewhere inside a page

When you write long texts in a page, you may want to create a link that points to a specific paragraph within your text.

To do this, you must create an "anchor" inside the page, and point to this anchor.

To create an anchor

Put your page in edit mode (X), place your cursor on the line that preceeds your text, and insert this small HTML sequence:

<a id="XXXX"></a>

where XXXX is to be replaced by a single name for your anchor. For example, "Chapter3"

<a id="Chapter3"></a>

To create a link to an anchor

In the page from which you want to link to your anchored text, insert the following code:

[This is my link to the anchor>Page#XXXX]

where XXXX is the name previously given to the anchor.

Using our example where the page name is "PageX" and the anchor "Chapter3", the syntax would be:

[This is my link to the anchor>PageX#Chapter3]

You can create as many anchors as you want in a page. Each anchor must have a unique name within a page. But you can use the same anchor name in different pages.

Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getDocument' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document //big-sausage-pizza.trset.org/index.html> Wrapped Exception: Error number 3301 in 3: Exception while switching to database karla spice sativa rose silvina luna karla spice [10,26]