Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add category-path to course name in user email #61

Open
rsacher1 opened this issue Aug 5, 2024 · 4 comments
Open

Add category-path to course name in user email #61

rsacher1 opened this issue Aug 5, 2024 · 4 comments

Comments

@rsacher1
Copy link

rsacher1 commented Aug 5, 2024

over years many users create courses in different categories (eg 2020, 2021, ....) with same names (biology...)
it makes it hard to opt out of archiving if they only see a list of same named courses.
can we have a more detailed list?

2020 / Science / Biology / Microbiology
20201 / Science / Biology / Microbiology
....

Can you give a hint, where to look in the source code to try myself to add path to "%courses"

@Syxton
Copy link
Owner

Syxton commented Aug 12, 2024

@rsacher1 The function that returns the courselist in the emails is found here:
https://github.com/Syxton/moodle-tool_coursearchiver/blob/master/classes/processor.php#L1350

Line 1387 uses $course->fullname so you would want to gather the category info first and then attach there.

@rsacher1
Copy link
Author

rsacher1 commented Aug 15, 2024 via email

@Syxton
Copy link
Owner

Syxton commented Sep 4, 2024

@rsacher1 Glad I could help. FYI I don't see any pull request

@rsacher1
Copy link
Author

rsacher1 commented Sep 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants