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 customfield Filter to courselist shortcode #752

Closed
6 tasks done
georgmaisser opened this issue Dec 9, 2024 · 4 comments
Closed
6 tasks done

Add customfield Filter to courselist shortcode #752

georgmaisser opened this issue Dec 9, 2024 · 4 comments
Assignees

Comments

@georgmaisser
Copy link
Contributor

georgmaisser commented Dec 9, 2024

copy function from urise project. the goal ist to be able to add any filter on a customfield to the place where we use the shortcode

  • Fix standard custom field filter to be shown in standard filters menu - needs to work with "select" customfield (Auswahlliste)
  • Make sure actual values of customfield are shown, currently indexes are shown (1, 2,...)
  • Implement or copy pre-filter not to be shown in filter menu but to filter BEFORE booking options are shown
  • example: argument tag=Highlighted should only show booking options with a booking option customfield with shortname tag that has the value "Highlighted"
  • this should also work with for example category="Kommunikation" (see Sandra's screenshot)
  • implement filterontop
@bernhard-wunderbyte
Copy link
Collaborator

@plomersan

@plomersan
Copy link

Image

bernhard-wunderbyte pushed a commit to Wunderbyte-GmbH/moodle-local_wunderbyte_table that referenced this issue Dec 19, 2024
… table and get the string values to be shown in filter from field controller. (Wunderbyte-GmbH/moodle-mod_booking#752).
bernhard-wunderbyte pushed a commit to Wunderbyte-GmbH/moodle_local_urise that referenced this issue Dec 19, 2024
@bernhard-wunderbyte
Copy link
Collaborator

@plomersan Important: When using shortcode for select (Auswahlliste) we cannot use the actual string value, but instead have to use the index.

Example: For a customfield with shortname "tag" [courselist cmid=12 all=true tag=Highlighted] won't work, but we can use [courselist cmid=12 all=true tag=1] if "Highlighted" is the value of the first row.

@bernhard-wunderbyte
Copy link
Collaborator

[courselist cmid=12 all=true filter=1 filterontop=1] will show the filter on top now.

@bernhard-wunderbyte bernhard-wunderbyte changed the title Add customfield Filter to courselist shortcode (copy from urise) Add customfield Filter to courselist shortcode Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants