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

No question text in the question bank view #97

Closed
hgeorgsch opened this issue Sep 7, 2022 · 5 comments · Fixed by #114
Closed

No question text in the question bank view #97

hgeorgsch opened this issue Sep 7, 2022 · 5 comments · Fixed by #114
Assignees
Labels

Comments

@hgeorgsch
Copy link

Even if the checkbox is checked the question text is not shown.
We will probably have to rewrite the jazzquiz_question_bank_view based on the current implementation of core quiz.

@hgeorgsch
Copy link
Author

This works in the core question bank; showing the question text on a separate line in the table. To fix, one should compare our code to the question bank code.

@jorgenfinsveen
Copy link

Asked the Moodle forum for guidance regarding the implementation of a plugin specific question bank. The thread can be found here.

hgeorgsch added a commit that referenced this issue Jul 6, 2023
Hotfix of swapped columns in attendance list csv export
@jorgenfinsveen
Copy link

Have already worked a bit with this issue. I am yet to actually resolve it, but I will do as recommended in the moodle forum.

@jorgenfinsveen jorgenfinsveen linked a pull request Jul 28, 2023 that will close this issue
@jorgenfinsveen
Copy link

Managed to resolve this now.

Problem was that a specific column for showing the question text must be included in the columns variable in jazzquiz_question_bank_view.php. This would however make the the question text column visible regardless of the options chosen in the drop-down menu. Used the base-url to locate the qbshowtext parameter and added the question text column if its value was not equal to 0. The superclass which the jazzquiz_question_bank_view class inherits from was able to differ between the "text only" and "text and images" options by itself.

After implementation


Option: No question text

Skjermbilde 2023-07-28 kl  14 31 06



Option: Only text

Skjermbilde 2023-07-28 kl  14 33 52



Option: Text and media

Skjermbilde 2023-07-28 kl  14 34 39

@jorgenfinsveen
Copy link

jorgenfinsveen commented Aug 7, 2023

Tested for Moodle version 4.1 and version 4.3 using both Safari, Google Chrome, Mozilla Firefox and Opera.

@jorgenfinsveen jorgenfinsveen reopened this Aug 7, 2023
hgeorgsch added a commit that referenced this issue Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants