× R0.30 Support

Joomdle Joomla Menu item = My Courses

13 years 5 months ago 13 years 5 months ago by Brian Cunningham. Reason: image too big
Brian Cunningham
Posts: 56
More
Topic Author
Joomdle Joomla Menu item = My Courses #1
Attachments:

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Antonio Durán
Posts: 7717
More
Joomdle Joomla Menu item = My Courses #2
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.

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Brian Cunningham
Posts: 56
More
Topic Author
Joomdle Joomla Menu item = My Courses #3
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:

Attachments:

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Antonio Durán
Posts: 7717
More
Joomdle Joomla Menu item = My Courses #4
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.

Please Log in or Create an account to join the conversation.

13 years 5 months ago 13 years 5 months ago by Brian Cunningham.
Brian Cunningham
Posts: 56
More
Topic Author
Joomdle Joomla Menu item = My Courses #5
I'm not really worried about the module, I'm using Vm module in it's place now.

Did you forget the attachment?

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Antonio Durán
Posts: 7717
More
Joomdle Joomla Menu item = My Courses #6
Just noticed :)

Did not forget, but it is showing, so second try... if it does not show up, I will send you by email.

File Attachment:

File Name: default.txt
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Antonio Durán
Posts: 7717
More
Joomdle Joomla Menu item = My Courses #7
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.

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Brian Cunningham
Posts: 56
More
Topic Author
Joomdle Joomla Menu item = My Courses #8
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?
Attachments:

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Brian Cunningham
Posts: 56
More
Topic Author
Joomdle Joomla Menu item = My Courses #9
Here is an example of how My Courses Menu item and Course Listing Menue item are generating different Urls.

Attachments:

Please Log in or Create an account to join the conversation.

13 years 5 months ago
Antonio Durán
Posts: 7717
More
Joomdle Joomla Menu item = My Courses #10
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.

Please Log in or Create an account to join the conversation.