- Posts: 56
R0.30 Support
Joomdle Joomla Menu item = My Courses
- Brian Cunningham
- Topic Author
- Offline
- Senior Member
-
Less
More
15 years 5 months ago - 15 years 5 months ago #1
by Brian Cunningham
Joomdle Joomla Menu item = My Courses was created by Brian Cunningham
Last edit: 15 years 5 months ago by Brian Cunningham. Reason: image too big
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 5 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Joomla Menu item = My Courses
Hi.
Maybe the 2 issues are related.
It feels to me that it has to do with PHP short tags being used in this code.
Change <? by <?php in "/components/com_joomdle/views/mycourses/tmpl/default.php", line 2.
Maybe the 2 issues are related.
It feels to me that it has to do with PHP short tags being used in this code.
Change <? by <?php in "/components/com_joomdle/views/mycourses/tmpl/default.php", line 2.
Please Log in or Create an account to join the conversation.
- Brian Cunningham
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 56
15 years 5 months ago #3
by Brian Cunningham
Replied by Brian Cunningham on topic Re: Joomdle Joomla Menu item = My Courses
Ok that fixed part of the problem. The wrapper doesn't break when the the menu item is defined with the Open Moodle link in wrapper but does break when "open in same page".
The real problem here is that the links lose the proper Itemid and the default template is shown without the proper menus and modules showing.
Menu item setup screen shot:
The real problem here is that the links lose the proper Itemid and the default template is shown without the proper menus and modules showing.
Menu item setup screen shot:
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 5 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Joomla Menu item = My Courses
I never needed to configure any params in the menu items, as it will take defaults for all of them.
As for your problems with templates, there are 2 different things:
- The one with the module, that you reported before, and is proving difficult to resolve
- The one you report now, that uncovers the fact that the itemid is not being passed in the mycourses view.
I think I solved it, and it seems to work fine for me. Just replace "components/com_joomdle/views/mycourses/tmpl/default.php" with the attached one (renaming it, as I had to change ext for the forum)
Please test and comment.
As for your problems with templates, there are 2 different things:
- The one with the module, that you reported before, and is proving difficult to resolve
- The one you report now, that uncovers the fact that the itemid is not being passed in the mycourses view.
I think I solved it, and it seems to work fine for me. Just replace "components/com_joomdle/views/mycourses/tmpl/default.php" with the attached one (renaming it, as I had to change ext for the forum)
Please test and comment.
Please Log in or Create an account to join the conversation.
- Brian Cunningham
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 56
15 years 5 months ago - 15 years 5 months ago #5
by Brian Cunningham
Replied by Brian Cunningham on topic Re: Joomdle Joomla Menu item = My Courses
I'm not really worried about the module, I'm using Vm module in it's place now.
Did you forget the attachment?
Did you forget the attachment?
Last edit: 15 years 5 months ago by Brian Cunningham.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 5 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Joomla Menu item = My Courses
Just noticed 
Did not forget, but it is showing, so second try... if it does not show up, I will send you by email.
Did not forget, but it is showing, so second try... if it does not show up, I will send you by email.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 5 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Joomla Menu item = My Courses
I have kept trying to solve the problem you have with modules and templates, with no luck.
Afer a lot of code reading and debugging, I thought this might not be a joomdle problem, but a Joomla one. And it seems I am right.
I explain what I did:
- Set up Tienda, using a different template for this menu item
- Set up "my orders" module, which links to a Tienda page
If I go to Tienda, and then click on the module, template is preserved.
- I then set up a new menu item, of not-Tienda type, with also a template assigned
If I go to this menu item, and then click on Tienda module, I get the default template, just like it is happening to you in Joomdle.
So I think the problems happens when trying to route one component from another.
Afer a lot of code reading and debugging, I thought this might not be a joomdle problem, but a Joomla one. And it seems I am right.
I explain what I did:
- Set up Tienda, using a different template for this menu item
- Set up "my orders" module, which links to a Tienda page
If I go to Tienda, and then click on the module, template is preserved.
- I then set up a new menu item, of not-Tienda type, with also a template assigned
If I go to this menu item, and then click on Tienda module, I get the default template, just like it is happening to you in Joomdle.
So I think the problems happens when trying to route one component from another.
Please Log in or Create an account to join the conversation.
- Brian Cunningham
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 56
15 years 5 months ago #8
by Brian Cunningham
Replied by Brian Cunningham on topic Re: Joomdle Joomla Menu item = My Courses
I'm not sure i understand, even with the example of the module, the links are all Joomdle generated links.
Actually my biggest problem at the moment is with the My courses menu option. The update you provided didn't seem to help. Links generated to course on the My Courses page lose the itemid and drop into a pure wrapper. This functionality works properly from the Joomdle "Course List" Menu item. I think the problem is a SEF issue as I noticed that the links generated in the Course List Menu are formatted differently than those of the My Courses Menu Item. See image
By the way what does the transparent wrapper option do?
Actually my biggest problem at the moment is with the My courses menu option. The update you provided didn't seem to help. Links generated to course on the My Courses page lose the itemid and drop into a pure wrapper. This functionality works properly from the Joomdle "Course List" Menu item. I think the problem is a SEF issue as I noticed that the links generated in the Course List Menu are formatted differently than those of the My Courses Menu Item. See image
By the way what does the transparent wrapper option do?
Please Log in or Create an account to join the conversation.
- Brian Cunningham
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 56
15 years 5 months ago #9
by Brian Cunningham
Replied by Brian Cunningham on topic Re: Joomdle Joomla Menu item = My Courses
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 5 months ago #10
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle Joomla Menu item = My Courses
Hi.
I cannot replicate your problem with My courses view, if I am understanding you right.
I create a menu item of "my courses" type (leaving all options to default), and assign a template to it. When I click on any courses, template is kept.
Is that what not works for you?
About URLs being different, it's normal, as they point to different things:
- Moodle wrapper
- Joomdle course details page
I don't know what transparent wrapper is for. Wrapper code is ported from JFusion, and as it was there, I decided to keep it in case anyone found it useful.
I cannot replicate your problem with My courses view, if I am understanding you right.
I create a menu item of "my courses" type (leaving all options to default), and assign a template to it. When I click on any courses, template is kept.
Is that what not works for you?
About URLs being different, it's normal, as they point to different things:
- Moodle wrapper
- Joomdle course details page
I don't know what transparent wrapper is for. Wrapper code is ported from JFusion, and as it was there, I decided to keep it in case anyone found it useful.
Please Log in or Create an account to join the conversation.