Feature Requests

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.

Get Teacher Name

More
10 years 8 months ago #1 by Luigi
Get Teacher Name was created by Luigi
I'd like to customize my courselist view so that it shows also the teacher's name right above the course summary. I know I have to override the php file, but I have no idea how to get the teacher name. Is there a variable that stores this info?

Thanks in advance and congrats for the astonishing work you've been doing

P.s.
I'm using:
- Joomdle 1.0.1
- Joomla! 3.4.1
- Moodle 2.8

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

More
10 years 8 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Get Teacher Name
Thanks for your kind words.

As for your request: currently you cannot do it "right": only way would be to call "get teachers" web service for each course, so you could show the info.
This is not practical, as it requires a web service call for each course.

The right way to do it would be to have teacher info returned in course listing web services.

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

More
10 years 8 months ago #3 by Luigi
Replied by Luigi on topic Get Teacher Name
That's exactly what I've done after studying a bit your code. I modified the loop which loops through the courses so that for each course I call JoomdleHelperContent::getCourseTeachers; so I can echo their names. I know that's not the proper way but it's an easy workaround :)
For future releases, this would be a really good feature :)
Thanks Antonio :)

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