- Posts: 13
Joomdle 1.0 Installation
[Solved] Joomdle courses module
- John Feagans
-
Topic Author
- Offline
- New Member
-
Less
More
10 years 2 months ago - 10 years 2 months ago #1
by John Feagans
[Solved] Joomdle courses module was created by John Feagans
Need some configuration help please.
I[strike] use the Joomdle courses module to display the available Moodle courses. I cannot find any configuration controls that work like the .8 version to not display course topics which has always had a problem displaying correctly. In views/course-view I have show topics set to "no" but the courses module still displays a link which displays topics.[/strike] My mistake, it is in "Detail View"
Second problem with courses-module is it used to take you to a registration page when you clicked the "Enroll" action if you were not logged in. Now it just returns you to the home page. I can't find a configuration to control this behavior.
I[strike] use the Joomdle courses module to display the available Moodle courses. I cannot find any configuration controls that work like the .8 version to not display course topics which has always had a problem displaying correctly. In views/course-view I have show topics set to "no" but the courses module still displays a link which displays topics.[/strike] My mistake, it is in "Detail View"
Second problem with courses-module is it used to take you to a registration page when you clicked the "Enroll" action if you were not logged in. Now it just returns you to the home page. I can't find a configuration to control this behavior.
Last edit: 10 years 2 months ago by Chris.
Please Log in or Create an account to join the conversation.
- John Feagans
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
10 years 2 months ago #2
by John Feagans
Replied by John Feagans on topic Joomdle courses module
My solution to the second problem involved an edit to get_login_url in mappings.php
Like the .8 version I forced the URL to be:
$url = "index.php?option=com_users&view=login&return=$return";
When not logged in the "Enrol in Course" button takes the user to the login/create account page, and when logged in (and paid through AEC) enrols and takes the user to the course.
I am not using any other apps so you will have to debug the dispatcher get instance.
Like the .8 version I forced the URL to be:
$url = "index.php?option=com_users&view=login&return=$return";
When not logged in the "Enrol in Course" button takes the user to the login/create account page, and when logged in (and paid through AEC) enrols and takes the user to the course.
I am not using any other apps so you will have to debug the dispatcher get instance.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 2 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Joomdle courses module
Hi.
Thanks for the bug report, we had missed that one. I guess it does not matter now, as you already fixed it, but I made a fix for next release.
In administrator/components/com_joomdle/helpers/mappings.php, get_login_url() function, change:
$result = $dispatcher->trigger('onJoomdleGetLoginUrl', array($return));
By:
$result = $dispatcher->trigger('getJoomdleLoginUrl', array($return));
As for detail view: this is configured in Joomdle configuration, Views tab.
Thanks for the bug report, we had missed that one. I guess it does not matter now, as you already fixed it, but I made a fix for next release.
In administrator/components/com_joomdle/helpers/mappings.php, get_login_url() function, change:
$result = $dispatcher->trigger('onJoomdleGetLoginUrl', array($return));
By:
$result = $dispatcher->trigger('getJoomdleLoginUrl', array($return));
As for detail view: this is configured in Joomdle configuration, Views tab.
Please Log in or Create an account to join the conversation.