Forums | Mahara Community

Support /
Linking to a text box on another page in a collection


Anna Greenhill's profile picture
Posts: 29

19 July 2018, 19:42

Hello, 

I wonder whether this is possible. I have a colleague who would like to create a table of contents on the front page of her Mahara collection. She wants to directly link to sections on other pages in her collection. I know you can easily link to other pages, but she wants the link to jump directly to the right section on the page. Is there a way to create anchors in Mahara? Can you think of a way to do this please? 

Thanks

Anna
Newman University, Birmingham

Robert Lyon's profile picture
Posts: 776

20 July 2018, 8:03

Hi Anna,

This functionality was added to the 18.04 version of Mahara via this patch https://reviews.mahara.org/#/c/8485/3

If you need the functionality on an older version of Mahara then making those same changes to your version should be ok.

In Mahara 18.04:

To create an anchor link (2nd last icon on row 3 or editor) you need to highlight some test on first page and add anchor link, eg 'test'

Then on second page highlight some text and add a link (chain icon) and select name of other page from 'Link list' and this should populate the 'Url' section of the form with the url to the other page eg:

https://demo.mahara.org/view/view.php?id=7

Now we need to edit the 'Url' and add to the end of it the link to the anchor. Because the way Mahara works if you add an anchor = test then the suffix to the url will be #user_test
as the 'user_' part is prefixed to all anchor links internally.

so the Url looks like:
https://demo.mahara.org/view/view.php?id=7#user_test

Cheers

Robert

Anna Greenhill's profile picture
Posts: 29

07 August 2018, 22:35

Thank you Robert. That works perfectly. :)

3 results