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.

[Closed] List Teachers in a menu and show teacher profile

More
13 years 4 months ago - 12 years 6 months ago #1 by bob
Joomla

Sorry for this question but i would like to have a Teachers list (name and lastname) in my left menu then click over the name and the profile should display in the content page... Keeping the list of all teachers in my visible left menu...is that possible?

Thank you for you help
Bob
Last edit: 12 years 6 months ago by Antonio Durán.

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

More
13 years 4 months ago - 12 years 6 months ago #2 by bob
I understand that i have to change mod_joomdle_abc to have a new menu listing all teachers or create a new one by myself ...any help?
Im pretty new to Joomla World and i still miss something :(
Last edit: 12 years 6 months ago by Antonio Durán.

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

More
13 years 4 months ago #3 by Antonio Durán
Hi.

There is currently no module to list teachers.

What you would need to do is create a new module, that would call to teachers_abc web services to get all teachers.
Basically, you need to port the teachersabc view to a module.

I will move this topic to Feature Requests.

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

More
13 years 4 months ago #4 by bob
Thank you...gracias
I will try :)

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

More
13 years 3 months ago - 13 years 3 months ago #5 by bob
ok...i have made ( i will pass u as soon it works) a new module and i have my teachers on the left....when i click on the teacher it give me the right page with details but...
after I clicking others teachers disappears on my left menu and remain only the active one....sigh

Think the problem is in the Teacher View component (it makes a brand new page except for my top part))...when it charges all others menu disappers (left and Right)...maybe do i have some module positions in the wrong places?
Link that i have made is...
Code:
if (is_array ($teacherslist)) foreach ($teacherslist as $teacher) { $user_info = JoomdleHelperMappings::get_user_info_for_joomla ($teacher['username']); if (!count ($user_info)) //not a Joomla user continue; $url = "index.php?option=com_joomdle&view=teacher&username=".$teacher["username"]."&Itemid=$itemid"; $url = JRoute::_($url); $link = "<a href=\"$url\">".$teacher["firstname"]." ".$teacher["lastname"].$itemid."</a>"; }

please give me an hint
Last edit: 13 years 3 months ago by bob.

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

More
13 years 3 months ago #6 by Antonio Durán
I think the problem is the itemid. Which one are you using? I can't see it defined it your code.

You should carry on the current itemid.
So, you create a link t o the teachers view, and then use that item id when linking to the teachers.

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

More
12 years 10 months ago #7 by Antonio Durán
Added module in R0.92.

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