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 custom field to card courses #99

Open
arno974 opened this issue Dec 29, 2021 · 2 comments
Open

Add custom field to card courses #99

arno974 opened this issue Dec 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@arno974
Copy link

arno974 commented Dec 29, 2021

Would it be relevant to add the custom fields added by the admin to the card courses ?
If so, it could be done by added just after the line 179 of the course_renderer.php file
the following code :

if ($course->has_custom_fields()) {
            $handler = \core_course\customfield\course_handler::create();
            $customfields = $handler->display_custom_fields_data($course->get_custom_fields());
            $content .= \html_writer::tag('span', $customfields);
}
@rmady
Copy link
Contributor

rmady commented Jan 21, 2022

Hello @arno974,

I love the ideia of adding the custom fields for the courselist but I know that some Moodles have a loto of custom fields in use, so I think it's better to put it in an modal or something like this.
I'll do this and put this option in the Trema settings.
Thank you for the contrib lol

Kind regards,
Rodrigo Mady

@rmady rmady added the enhancement New feature or request label Jan 21, 2022
@michael-milette
Copy link
Collaborator

Perhaps it could have 3 options:

  1. Do not show
  2. Show in card
  3. Show in popup

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

No branches or pull requests

3 participants