-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Courses list: set a default order #1655
Comments
Can we sort the course manually ? |
The ordering by alphabetical order has been fixed in 1.11.14, as far as I know (and should be the same code in 2.0). Assigning to Carlos for confirmation... |
hi @ywarnier Good morning, if there is a logic although it is not easy to observe, I explain, when you enter the section of my courses, user_portal.php is loaded, the section of the courses is loaded in the following line If loadHistory is false, the course categories are called. For each category, the courses will be selected using the function (returnCoursesCategories) https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/inc/lib/course.lib.php#L4063 It is here that the sql is structured to show the ordered courses that will be as follows ORDER BY course_rel_user.user_course_cat, course_rel_user.sort ASC It is ordered first by category and then by the order established by the user, if this order is not modified by the user an incremental is used by date of addition It will be revised properly for version 2 |
Hi... How to show All courses on Homepage in chamilo v 1.11.16 (By default only 6 courses show on the homepage). Thank! |
Hi @nguyen-xuan-huan |
Slack is only available for @beeznest addresses ;-) |
@lonesomewalker Not at all, you just have to ask for an invitation if you have legitimate interest in contributing. It's not open because we don't want to deal with spam account. Several people who have contributed issues/patches/PRs in the past are on Slack, unrelated to BeezNest |
Courses are ordered alphabetically by title (c.title), followed by the custom sort field (sort) and the course category (userCourseCat). Sessions are ordered by start date (s.displayStartDate), then alphabetically by title (s.title), and finally by their defined position (s.position). It is checked with this PR #6036 |
User: Add ordering logic for courses and sessions list - refs #1655
Current behavior / Resultado actual / Résultat actuel
The list of courses for students and teachers appear with no particular logic. The issue with that is that a change in one of the course's settings can have the impact of changing the order, which makes it difficult to manage when you have 30-40 courses or so.
Expected behavior / Resultado esperado / Résultat attendu
Ordering by name would be just fine (first sessions by date then name (if no date), then courses by name).
Chamilo Version / Versión de Chamilo / Version de Chamilo
1.11.2
@p4pr8n for more info
The text was updated successfully, but these errors were encountered: