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.

[Closed] Display more than the course name in Course module

  • Aud
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 6 months ago - 14 years 6 months ago #1 by Aud
Hi there,

I have set up a module, Joomdle courses, it displays the last 5 courses on the home page as it should.

My client is now asking for the list to include other information too, like a description and a sponsor name (the courses are sorted by categories that are the sponsors).

Is there any way of doing this please?

Many thanks
Last edit: 14 years 6 months ago by Chris.

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

More
14 years 6 months ago #2 by Chris
Where is the information coming from in Moodle? Ie the fields from the moodle course.

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

  • Aud
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 6 months ago #3 by Aud
Tt is currently displaying the course title, that seems to be the default.

I would like to also display the course summary from moodle.

Thanks

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

  • Aud
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 6 months ago #4 by Aud
I have found a solution, posting it here in case it is useful:

in file mod_joomdle_courses\tmpl\default.php
echo "<li><a $target href=\"".$moodle_auth_land_url."?username=guest&mtype=course&id=$id&use_wrapper=$open_in_wrapper&Itemid=$itemid\">".$curso."</a></li>".$curso;


i added this at the end, it needs to go in other places lower in the file as it deals with logged in / out scenarios:
.$curso;

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

More
14 years 6 months ago #5 by Antonio Durán
Thanks for sharing. We might add a configuration option to show summary along with the course name.

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

More
14 years 6 months ago #6 by Chris
Moved to Tips & Tricks

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