michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 44 forks source link

Feature Request: Creation of {ifcourse_customfield shortname}{/ifcourse_customfield shortname} #304

Open davefoord opened 1 month ago

davefoord commented 1 month ago

Prerequisites

Feature Request - The User Story

Would it be possible to create a filter code along the lines of {ifcourse_customfield shortname} which shows content if that customfield contains something, but doesn't display things if it is empty.

We have a set of 12 'competencies' (these are not Moodle competencies but something else) and each course is cross referenced to whichever competencies that course covers. We want to display within each course, which competency is covered including an icon and a link to a further information page for that competency. If I create a custom field for each competency, a course creator can tick the boxes for which competencies are covered - I can then have a generic page in each course, which has each of the 12 competencies listed and based on this filter code would display the relevant ones.

Screenshots / Mock-ups

No response

Alterative you have considered

I did look at the Generico filter, but I don't think this will do this on its own (although I may use in conjunction with filter codes to actual apply this mechanism).

Additional information

As always, thanks in advance, as you know - I love this plugin....

Planning on submitting a solution in a pull request (PR)?

No

Code of Conduct

jb-fol commented 1 month ago

Agree that this would be very useful. Duplicate of https://github.com/michael-milette/moodle-filter_filtercodes/issues/285 😊