× Tips & Tricks

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

Course Contents on Main course page?

3 months 2 weeks ago
Dan
Posts: 7
More
Topic Author
Course Contents on Main course page? #1
Hello,
I want to be able to show the course contents page below the description in one page. When I tried to merge the contents in a template page I found that the loop starting with $this->mods was empty if I moved it to the "detail" layout.
Is there a layout override I can use please?

Thanks

Dan

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

3 months 1 week ago
Antonio Durán
Posts: 7815
More
Course Contents on Main course page? #2
Not really, if you want to combine functionality from 2 different views you will need to code it yourself, making the needed calls so that you have $this->mods filled.

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

3 months 1 week ago
Dan
Posts: 7
More
Topic Author
Course Contents on Main course page? #3
OK, I'm happy to code it, but where does the array for $this->mods come from?

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

3 months 1 week ago
Antonio Durán
Posts: 7815
More
Course Contents on Main course page? #4
You can see it being populated in:
components/com_joomdle/views/course/view.html.php

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

3 months 1 week ago
Dan
Posts: 7
More
Topic Author
Course Contents on Main course page? #5
OK, I got it and using the code to get the course ID integer and checking if the user is enroled I was able to list the course details.

Thanks for the hint!

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