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
30 stars 42 forks source link

Feature Request: Lists instead of Cards #250

Closed boxxcar1 closed 1 year ago

boxxcar1 commented 1 year ago

Prerequisites

Feature Request - The User Story

Currently there are a few Filtercodes that display information as cards (i.e Coursecards) - my request would be to have the same information displayed as a list instead of cards. The reasoning behind this is a list can display much more information without scrolling than the cards do. I purpose maybe a Courselist filter? Would be even better if the list could display related information like the category/description/course image etc

Screenshots / Mock-ups

concept - all courses list

Alterative you have considered

No response

Additional information

No response

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

Yes

Code of Conduct

michael-milette commented 1 year ago

HI @boxxcar1 ,

Thank you for your suggestion. In FilterCodes, the best I could offer to do for you would be to have a setting which would switch the cards instead into a table format containing the course name and category or something like that.

As I a sure you already know, Moodle's native course listing is already in a table format so I sense that it is really the filter functionality that you are after. If that is the case, this would really be more of a theme and/or block customization to override Moodle's own course listing format. Also, the list of fields and filters in the course listing would most likely be unique to your particular requirements.

If you are interested in hiring me to provide you with custom development services for Moodle LMS, please contact me through my website at https://tngconsulting.ca/contact.

Best regards,

Michael Milette

michael-milette commented 1 year ago

Hi @boxxcar1 ,

Take a look at the latest version of FilterCodes here on GitHub. It includes a list option which displays the courses in a table. Fields include course name, category and description. However, it does not feature any filtering. To choose that format, you will need to configure it in the FilterCodes settings.

Best regards,

Michael

boxxcar1 commented 1 year ago

Thanks Michael! works really well - which file would allow me to adjust the width of the table columns?

What would be required to add a filter/search to the list option? This view is exactly what i'm after, i just need users to be able to search through the list/table.

michael-milette commented 1 year ago

Hi @boxxcar1,

At the moment, the table is responsive and column widths are automatically adjusted by Bootstrap. I have not tried it but you might be able to manipulate column widths using CSS. I made sure each of the columns had classes.

To add a filter/search feature would require more development to implement datatables.

Best regards,

Michael