So I went back to basics and produced this tutorial for me which I can share with those that are in need and who use Pretty URLs on their site.
IN PAGE ANCHORS
Normally in html we would identify our target position with
Code: Select all
<a name="LINK_TO_HERE"></a>
Then we would create the link to the target position with
Code: Select all
<a href="#LINK_TO_HERE">FROM HERE</a>
LINK TO ANCHORS IN OTHER PAGES
Again normally in html we would create the link to the target position with
Code: Select all
<a href="/targetpage.php#LINK_TO_HERE">FROM HERE</a>
Well if you want to use the html method in CMSMS you have to use the path to the page in both cases. So the html would look like
Code: Select all
<a href="index.php/targetpage#LINK_TO_HERE">FROM HERE</a>
If you do not want to go down the html route and you use TinyMCE you can use the Make Anchor Tool to create the LINK_TO_HERE anchor and if you wish use the Anchor Tag
Code: Select all
{anchor anchor="LINK_TO_HERE" text="FROM HERE"}
To link to anchors in other pages in CMSMS you have 2 other options once you have used the Make Anchor Tool to create the LINK_TO_HERE anchor:
1. Create your link using the CMSMS link maker in TinyMCE then edit the html to put
Code: Select all
#LINK_TO_HERE
Code: Select all
<a href="index.php?page=targetpage#LINK_TO_HERE">FROM HERE</a>
2. Create your link using the link maker entering the URL as
Code: Select all
index.php/targetpage#LINK_TO_HERE
For whatever reason the
Code: Select all
{anchor}
The only drawback with all this as far as I can see is if you have editors without html knowledge that want to place anchors in the pages they update and link to these.
For these situations I guess you would have to provide a short tutorial using the make anchor tool in TinyMCE and the method at 2. above, as these require no html editing.
Hope this helps someone as much as it has helped me.