- Posts: 7
Open Moodle links in "New Window" not working in Course List
- vcube04
- Topic Author
- Offline
- New Member
-
Less
More
13 years 2 months ago - 13 years 2 months ago #1
by vcube04
Open Moodle links in "New Window" not working in Course List was created by vcube04
Hi:
I'm using Joomla 2.5.6; moodle 2.3; Joomdle 0.82
Part-1: NEW Window not working
Tried the following, in Joomdle Configuration:
1) Set, 'Open Moodle links' in "New Window"
2) Set, Go to course button "Moodle"
3) Published "Joomdle Courses" and "Joomdle My Courses" module to front page
4) When I click on links under "Joomdle My Courses", courses open in NEW window (Correct behavior)
5) When I click on links under "Joomdle Course", courses just open in the CURRENT window, thus replacing the parent window. (Incorrect behavior).
I have tried on different systems and I could NOT get "Joomdle Course" link to open in a NEW window.
Part-2: POP-up window instead of NEW window
I need to open courses in a POP-UP window instead of just a NEW window, so that I will have both my HOME web page and the pop-up page just for Moodle courses. This is to ensure consistency in user experience, since my moodle courses have quizzes and other activities (currently not supported in Joomdle wrapper).
To accomplish this, I have tried editing 'default.php' under 'mod_joomdle_my_courses\tmpl' by replacing
The above works for Joomdle My Courses, but how to get it to work for "Joomdle Courses"?
Can you please provide guidance on the following issues:
(a) If the NEW window is an issue, and
(b) Which file and what part of the code should I be looking at to get the pop-up window code inserted?
(Is it ok for me to change your code?)
Greatly appreciate your help!
I'm using Joomla 2.5.6; moodle 2.3; Joomdle 0.82
Part-1: NEW Window not working
Tried the following, in Joomdle Configuration:
1) Set, 'Open Moodle links' in "New Window"
2) Set, Go to course button "Moodle"
3) Published "Joomdle Courses" and "Joomdle My Courses" module to front page
4) When I click on links under "Joomdle My Courses", courses open in NEW window (Correct behavior)
5) When I click on links under "Joomdle Course", courses just open in the CURRENT window, thus replacing the parent window. (Incorrect behavior).
I have tried on different systems and I could NOT get "Joomdle Course" link to open in a NEW window.
Part-2: POP-up window instead of NEW window
I need to open courses in a POP-UP window instead of just a NEW window, so that I will have both my HOME web page and the pop-up page just for Moodle courses. This is to ensure consistency in user experience, since my moodle courses have quizzes and other activities (currently not supported in Joomdle wrapper).
To accomplish this, I have tried editing 'default.php' under 'mod_joomdle_my_courses\tmpl' by replacing
with this line of code:echo "<li><a $target href=\"".$redirect_url."\">".$curso."</a></li>";
echo "<li><a href=\"".$redirect_url."\" onclick=\"window.open(this.href, 'targetWindow', ' '); return false;\">".$curso."</a></li>";
The above works for Joomdle My Courses, but how to get it to work for "Joomdle Courses"?
Can you please provide guidance on the following issues:
(a) If the NEW window is an issue, and
(b) Which file and what part of the code should I be looking at to get the pop-up window code inserted?
(Is it ok for me to change your code?)
Greatly appreciate your help!
Last edit: 13 years 2 months ago by vcube04.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 2 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Open Moodle links in "New Window" not working in Course List
Hi.
1) Thanks for the bug report. I tested and can confirm the problem.
I will try to fix it for next release.
2) I think once 1) is solved, it will be easier to think about this.
1) Thanks for the bug report. I tested and can confirm the problem.
I will try to fix it for next release.
2) I think once 1) is solved, it will be easier to think about this.
Please Log in or Create an account to join the conversation.
- Jennifer Fry
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 3 months ago #3
by Jennifer Fry
Replied by Jennifer Fry on topic Open Moodle links in "New Window" not working in Course List
Hi Antonio, has this issue been resolved? I can open the PDF files in a pop-up window in Moodle but not within Joomdle itself. Do you know why or how to fix it? Thanks!
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 3 months ago #4
by Chris
Replied by Chris on topic Open Moodle links in "New Window" not working in Course List
Just a quick reply. Antonio is on holidays until next week. I shall leave this issue for him to assist you with.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
11 years 3 months ago #5
by Antonio Durán
Replied by Antonio Durán on topic Open Moodle links in "New Window" not working in Course List
Hi Jeniffer.
It seems you are not talking about same thing as parent poster.
He was talking about opening courses from Joomdle modules, while it seems you talk about opening moodle course contents from Joomdle course view, right?
If that's the case, please open a new thread, describing the problem and your configuration.
It seems you are not talking about same thing as parent poster.
He was talking about opening courses from Joomdle modules, while it seems you talk about opening moodle course contents from Joomdle course view, right?
If that's the case, please open a new thread, describing the problem and your configuration.
Please Log in or Create an account to join the conversation.
- Jennifer Fry
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 3 months ago #6
by Jennifer Fry
Replied by Jennifer Fry on topic Open Moodle links in "New Window" not working in Course List
Yes I was, I will open a new topic, thank you!
Please Log in or Create an account to join the conversation.