Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author winkm89

    (@winkm89)

    Hi,

    I’ve added two order parameters to [tpenrollments], which can be used to manipulate the order of courses. You can find more information in the documentation

    Thread Starter unofficialmagellan

    (@unofficialmagellan)

    will this also order the courses under “Your Enrollments” I have 3 parent courses right now and to order them by parent will work great for me. [tpenrollments order_parent=”Training”] doesn’t seem to order the “Your Enrollments” page. That is the one I really wanted to have ordered. Also is my syntax correct for [tpenrollments order_parent=”Training, Tournaments, Nebraska League”]

    Being new to this I want to make sure I am using it correctly.

    Plugin Author winkm89

    (@winkm89)

    No, the “Your Enrollments” page is currently not affected from these options.

    The parameters works with the column names (course_id, name, type, lecturer, date, room, places, start, end, semester, parent, visible,…) and the direction (ASC or DESC; stands for ascending and descending) but not with the content of the columns.

    For example:
    order_parent=”type DESC, name”
    order_parent=”course_id”

    In your case:
    [tpenrollments order_parent=”name DESC”]

    Thread Starter unofficialmagellan

    (@unofficialmagellan)

    OK.. thank you for the clarification. It definitely works as you describe without issue. Are there any plans that would affect the “Your Enrollments”. I use this so that members have a personalized schedule. I enroll them manually so when they go to the site they can see a schedule that is customized just for them. Again thanks for ordering parameter it works great.

    Plugin Author winkm89

    (@winkm89)

    This needs a third order parameter (order_signups) and some more changes. Will be introduced with the next version. In the meantime, you can modify it manually in /teachpress/core/database.php, line 2499 (after ORDER BY).

    Thread Starter unofficialmagellan

    (@unofficialmagellan)

    Worked like a champ! Thank you very much.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Sort tpenrollments’ is closed to new replies.