Forums | Mahara Community
Mahara/Moodle integration
/
Mahoodle links to individual areas
04 November 2011, 5:37
We've set-up a Mahoodle integration between our Moodle and Mahara sites and it's working well.
I was trying to figure out a way to link to individual sections within Mahara from Moodle.
We are populating moodle with support materials for mahara. These materials include exercises we want our students to complete ie "Reflection Time - complete an entry in your journal". Ideally what we'd like to do is provide a mahoodle link directly to the students journal. I could easily provide a link to the journal but I want to make the process seemless from a login point of view as well.
Any-one got any ideas how I could achieve this?
04 November 2011, 7:30
Just testing the concept so this may not work but if I create a page, make it public and allow copying I can give the link from Moodle: http://www.shelleycollege.org/maha14/view/view.php?id=977
Does this work?
Obviously as the page owner I cannot test it
Completely not what you asked sorry. However if this does work it would be useful to know
05 November 2011, 5:32
Hi Mike,
If I recall correctly (and I'll be able to look on Monday), you can specify a 'wantsurl' on the MNet Jump URL in moodle, which would be the page the user wants to visit on mahara.
As an example:
I may not have it quite right and I'll be able to double check on Monday.
On the mahara side, I don't think that there's a way of going to a user's profile specifically, but it would be trivial to put together a page to do a database lookup, and redirect to the relevant page. So you'd put a page together (e.g. /local/myprofile.php) which would determine the current user, do a database lookup to determine the ID of the user's profile page, and then redirect to that page.
All the best,
Andrew
06 November 2011, 17:23
Hi Mike,
Andrews answer is correct, except that the wantsurl needs to be urlencoded (otherwise the ?id=1 won't work). So the example would be
The hostid is the peer id of the mnet connection. The first one created is 3 (1 and 2 are reserved for the moodle host and a special "All hosts" connection). But you can find out which it is by going to the network peers page in Moodle, clicking on the one you want, and the url in the address bar should have a parameter of id=... in it. That id is the hostid.
Hope that all helps.
Cheers,
Hugh
06 November 2011, 12:37
Hello Mike,
I think trying to link to a specific journal in Mahara, even if you figure out how to link to the one that is automatically created for a new user, can be faulty. Students can have multiple journals (which you can't suppress as it is a setting in a user's own settings). Especially for students who have been using their portfolio before coming to you, they may have more than one journal. To which one would you then link?
I'd suggest linking to the journal overview page.
Cheers
Kristina