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

Summary appearing twice on view page in Moodle 4.0+ #699

Open
bwalkerl opened this issue Nov 3, 2023 · 0 comments
Open

Summary appearing twice on view page in Moodle 4.0+ #699

bwalkerl opened this issue Nov 3, 2023 · 0 comments

Comments

@bwalkerl
Copy link

bwalkerl commented Nov 3, 2023

Moodle 4.0 added new activity headers that are by default turned on in most themes. The activity headers include a "description" section, which for mod_turnitintooltwo uses the summary. This summary is already shown in mod_turnitintooltwo on the view page in the submission inbox, which makes up part of the main page.

For short summaries this is fine, but it becomes very noticeable for larger ones or those with custom styling as in the following example:

Screenshot from 2023-11-03 10-10-30

As a rough approach this can be hidden by adding the following code to view.php or a function called there, but having the description here does have other advantages so it may be better to take a different approach.

$PAGE->activityheader->set_attrs([
    "description" => '',
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants