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

Activity Navigation: Wrong positioning of arrow in next section link #536

Closed
v-r-n-a opened this issue Jan 5, 2024 · 1 comment · Fixed by #617
Closed

Activity Navigation: Wrong positioning of arrow in next section link #536

v-r-n-a opened this issue Jan 5, 2024 · 1 comment · Fixed by #617
Assignees
Labels
bug Something which isn't working good first issue Something which can be addressed by newcomers in reasonable time

Comments

@v-r-n-a
Copy link

v-r-n-a commented Jan 5, 2024

If theme_boost_union | activity navigation is enabled and you visit a section page in a course with the course format Topics: Show one section per page, the arrow in the link to the next section is in front of the section name (see screenshot).

The arrow should appear after the section name (as on activity pages with a link to the next activity). -> On the screenshot after Abschlussreflexion & Evaluation

BU_section-navigation-icon

Moodle Version 4.1.8 (Build: 20231222)

To Reproduce

  1. Enable activity navigation in administration
  2. Create a course with course format Topics: Show one section per page and add at least 4 sections (0, 1, 2, 3).
  3. Visit section page 2 (i.e. .../course/view.php?id=182&section=2)
  4. Look at the link to the next section: the arrow is in front tof the link name
  5. (Optional: Create at least 3 activities and visit the 2nd activity. Compare the next activities link (arrow behind name) with the next section link)

Edited 2023/01/08: With course format Weeks: Show one section per page, the behavior is the same.

@v-r-n-a v-r-n-a added the new Something which has been reported but has not yet beeen triaged by the team label Jan 5, 2024
@whuml whuml added bug Something which isn't working good first issue Something which can be addressed by newcomers in reasonable time and removed new Something which has been reported but has not yet beeen triaged by the team labels Jan 9, 2024
@whuml whuml moved this to Ready for DEV in Boost Union Planning Board Jan 9, 2024
@abias abias self-assigned this Apr 1, 2024
@abias abias moved this from Ready for DEV to To do REQ in Boost Union Planning Board Apr 1, 2024
@abias abias added the discussion needed Something which needs to be discussed before writing the first line of code label Apr 1, 2024
@abias abias moved this from To do REQ to In Progress DEV in Boost Union Planning Board Apr 1, 2024
@abias abias removed the discussion needed Something which needs to be discussed before writing the first line of code label Apr 1, 2024
@abias
Copy link
Member

abias commented Apr 1, 2024

Hi @v-r-n-a , many thanks for reporting this issue.

I had a look to see what's going on here and can now say:

  • This issue is only an issue if the theme_boost_union | activitynavigation setting is set to yes. In this case, the $PAGE->theme->usescourseindex flag is set to false which causes Moodle core to assume that the theme does not use a course index and renders additional navigation elements.
  • The theme_boost_union | activitynavigation setting was initially meant to show the activity navigation elements between individual activities. But I had to see now that Moodle core also respects this setting to decide if additional section navigation elements should be shown when the course format is configured to be used as single section per page.
  • The activity navigation and the section navigation are rendered by different methods. While the activity navigation has the arrow on the right side, the section navigation has not (as reported here).
  • It is even more complicated as there are two section navigation widgets:
grafik The upper one is rendered with the core_courseformat/local/content/sectionnavigation mustache template and the lower one is rendered with the core_courseformat/local/content/sectionselector mustache template.

While Boost Union could overwrite these mustache templates and place the arrow on the opposite side, my gut feeling is that we should not do that in Boost Union.

@v-r-n-a , I would rather encourage you to report this glitch on tracker.moodle.org for Moodle core. If Moodle core fixes it, Boost Union will automatically adopt the change.

Furthermore, there are also the open issues #586 and #587 from you. There, additional presentation settings for the activity navigation and the settings navigation are proposed.
If we introduce presentation settings there, we can piggypack the arrow glitch fix on these settings there.

The only thing I will implement now is an enhancement of the description of the theme_boost_union | activitynavigation setting now.

abias added a commit that referenced this issue Apr 1, 2024
@abias abias moved this from In Progress DEV to Ready for REVIEW in Boost Union Planning Board Apr 1, 2024
@abias abias closed this as completed in #617 Apr 2, 2024
abias added a commit that referenced this issue Apr 2, 2024
@github-project-automation github-project-automation bot moved this from Ready for REVIEW to Ready for Backport in Boost Union Planning Board Apr 2, 2024
abias added a commit that referenced this issue Apr 6, 2024
abias added a commit that referenced this issue Apr 6, 2024
abias added a commit that referenced this issue Apr 6, 2024
abias added a commit that referenced this issue Apr 6, 2024
@abias abias moved this from Ready for Backport to Ready for Release in Boost Union Planning Board Apr 6, 2024
@abias abias moved this from Ready for Release to CLOSED in Boost Union Planning Board Apr 7, 2024
detomon pushed a commit to detomon/moodle-theme_boost_union that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something which isn't working good first issue Something which can be addressed by newcomers in reasonable time
Projects
Status: CLOSED
3 participants