Contextual course enrollment token

Created on 12 December 2022, about 2 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

Is there an easy way to get some kind of identifier for an individual user's instance of a course? I need to build views within multiple objects and reference taxonomies chosen when the user completes the first course object, so having that ID would allow me to query it as needed. Ultimately my goal is to have those taxonomies stick with the user though each part of the course so I can filter different views. $_SESSION var won't work as the courses are long-duration, and are lost when the user logs out and back in.

Thanks for any suggestions you can provide.

✨ Feature request
Status

Active

Version

3.0

Component

Course objects

Created by

πŸ‡ΊπŸ‡ΈUnited States sklompar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

    It's because a course object doesn't have a course enrollment context. A course enrollment is between a course and a user, so viewing a course object would not have that context. If you look at the text filter for token replacement, it has no idea where the course enrollment would come from. So the solution in #6 is likely the best approach.

Production build 0.71.5 2024