[Solved] mod_joomdle_course display issue

  • Pavel Fernandez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 5 months ago - 14 years 5 months ago #1 by Pavel Fernandez
[Solved] mod_joomdle_course display issue was created by Pavel Fernandez
Hi guys

I installed joomdle 0.7 with moodle 2.2. Everything went fine during the installation, but now I am facing a little problem that is driving me crazy

I am using a rockettheme template for joomla 1.5.24

I am want to display the couse list on my front page. Thus, I configure components mod_joomdle_courses and mod_joomdle_calendar to be displayed on my FP. After I finished with this My FP looks like:





as you can see, joomdle course list is displayed on the left side of my FP. When I click on the course name ( computacion basica), it reloads the FP and displayed the content on the same page





What I am trying to do, is to display the course list as a new page ( not including in the same FP) When I select the couse list from my very top menu, I can see the course list as I want it to be displayed





I have done some testing and found that whe I click the course name on my FP, the url link is

http://x.x.x.x/bschool2/joomla/index.php?option=com_joomdle&view=detail&cat_id=2:computacion-&course_id=2:compuacion-basica-i&Itemid=1

and when I click the course list from my top menu, the link is


http://x.x.x.x/bschool2/joomla/index.php?option=com_joomdle&view=detail&cat_id=2:computacion-&course_id=2:compuacion-basica-i&Itemid=159


The only difference between both links is the item id. In the first case, the item id = 1 and in the second case, the value is = 159

Now, I checked the component code and I think that the file responsible for this is


joomdle-0.7\joomdle-joomla-package\joomdle-joomla-package\mod_joomdle_courses\tmpl\default.php


within that file, there is a section

Code:
if ($joomdle_itemid) $itemid = $joomdle_itemid; $url = JRoute::_("index.php?option=com_joomdle&view=detail&cat_id=".$curso['cat_id'].":".JFilterOutput::stringURLSafe($curso['cat_name'])."&course_id=".$curso['remoteid'].':'.JFilterOutput::stringURLSafe($curso['fullname'])."&Itemid=$itemid"); // $url = JRoute::_("index.php?option=com_joomdle&view=detail&cat_id=".$curso['cat_id'].":".JFilterOutput::stringURLSafe($curso['cat_name'])."&course_id=".$curso['remoteid'].':'.JFilterOutput::stringURLSafe($curso['fullname'])); echo "<li><a href=\"".$url."\">".$curso['fullname']."</a></li>"; } $i++; if ($i >= $limit) // Show only this number of latest courses break; }

My question is, why default.php assigns a "1" when I use it in my FP, and a "159" when I use it in my top menu. And what can I do to list my course list in my FP but once I clink on a cousre, display that course in another page

Any help is greatly appreciated!!!!
Last edit: 14 years 5 months ago by Chris.

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

  • Pavel Fernandez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 5 months ago #2 by Pavel Fernandez
****************** UPDATE *************
Dont know why the URLs I mentioned before were cut. I will try to put them using a different format


I have done some testing and found that whe I click the course name on my FP, the url link is
Code:
http://X.X.X.X/bschool2/joomla/index.php?option=com_joomdle&view=detail&cat_id=2:computacion-&course_id=2:compuacion-basica-i&Itemid=1



and when I click the course list from my top menu, the link is
Code:
http://X.X.X.X/bschool2/joomla/index.php?option=com_joomdle&view=detail&cat_id=2:computacion-&course_id=2:compuacion-basica-i&Itemid=159

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

More
14 years 5 months ago #3 by Antonio Durán
Hi.

It seems you just need to configure the "Joomdle itemid" option in Joomdle configuration. Enter there the itemid you want to use in modules that link to Joomdle views.

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

  • Pavel Fernandez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 5 months ago #4 by Pavel Fernandez
you guys do magic!!!
Thank you very much Antonio!!! I fixed my issue following your recomendation.

Sorry if my question was quite stupid, but I had been working on this for 3 days without any success.

Thanks again and a congratulations!!! for this great project

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

More
14 years 5 months ago #5 by Chris
Hi Pavel, also note that with Rockettheme, you can configure your FP to use a different Gantry profile than the rest of the pages. Thus you can play with the item ids and Gantry to get your desired look.

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

  • Pavel Fernandez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 5 months ago #6 by Pavel Fernandez
Thanks Chris. I will go with the recommendation you made

Thanks guys

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