How To / General

Joomla menu link to moodle category

  • steveh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #1 by steveh
Joomla menu link to moodle category was created by steveh
Hi

I am not sure where to find the moodle category ID?

I did create one in the Moodle category edit area where you can create your own ID but when linking from Joomla I get: "No category selected"

I have attached some screenshots of what I see from Joomla and Moodle


Your assistance is appreciated.
Thank you
Steve

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

  • Web Buster UK Ltd
  • Offline
  • Elite Member
  • Elite Member
More
6 years 5 months ago - 6 years 5 months ago #2 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Joomla menu link to moodle category
[strike]When you edit the course category in Moodle, there's a field called "Category ID number". It is empty by default I believe, but you can put a number in there which will then be read by Joomdle.[/strike]

Edit: It appears the course category ID is actually the ID within the moodle database. If you hover over the category link in Moodle, you'll see the URL ending with "categoryid=X". That X is the category ID.
Last edit: 6 years 5 months ago by Web Buster UK Ltd.

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

More
6 years 4 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Joomla menu link to moodle category
Hi,

Thanks for the bug report: the parameter in this view should show Moolde course category list, so you can select it without knowing about IDs.
Problem is that in a recent update, we changed some paths, and this view was not updated properly.
So, to fix this, please edit file: components/com_joomdle/views/coursecategory/tmpl/default.xml
Change:
Code:
<field type="coursecategory" name="cat_id" label="COM_JOOMDLE_CATEGORY" description="COM_JOOMDLE_CATEGORY_DESCRIPTION" addfieldpath="/administrator/components/com_joomdle/fields" />
By:
Code:
<field type="coursecategorylist" name="cat_id" label="COM_JOOMDLE_CATEGORY" description="COM_JOOMDLE_CATEGORY_DESCRIPTION" addfieldpath="/administrator/components/com_joomdle/models/fields" />

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