Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73114

Display a title in the dashboard page

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73114-master
    • Hide

      Test the 'nocontextheader' option

      1. Open the file theme/classic/config.php in a text editor
      2. Find the layout configuration for 'mydashboard'
      3. in the 'options' array add , 'nocontextheader' => true
        see:

            // My dashboard page.
            'mydashboard' => array(
                'file' => 'columns.php',
                'regions' => array('side-pre', 'side-post'),
                'defaultregion' => 'side-pre',
                'options' => array('langmenu' => true, 'nocontextheader' => true),
            ),
        

      4. Login to moodle as admin
      5. Switch to the classic theme
      6. Go to the dashboard page
      7. Verify you do not see the page title 'Dashboard'.
      8. Verify you see the navigation menu ('Dashboard / My courses / More...').
      Show
      Test the 'nocontextheader' option Open the file theme/classic/config.php in a text editor Find the layout configuration for 'mydashboard' in the 'options' array add , 'nocontextheader' => true see: // My dashboard page. 'mydashboard' => array( 'file' => 'columns.php' , 'regions' => array( 'side-pre' , 'side-post' ), 'defaultregion' => 'side-pre' , 'options' => array( 'langmenu' => true , 'nocontextheader' => true ), ), Login to moodle as admin Switch to the classic theme Go to the dashboard page Verify you do not see the page title 'Dashboard'. Verify you see the navigation menu ('Dashboard / My courses / More...').

    Description

      We need to step back on our decision to remove the greeting message from the dashboard after the user leaves the page.

      We should always display a page title, for accessibility reasons and also to make the experience more solid when navigating through the primary navigation.

      My initial idea was to always keep the greeting message in the dashboard even when the user browses away from the page and come back later. I'm aware that this option was already discussed and denied in the past, so I suggest we change the page title from the greeting to "Dashboard" when the user comes back to this page.

       

      So, when the user logs in the greeting would be the dashboard title (as it is right now):

       

      Then, if the user goes away from the dashboard and comes later (in the same session), the title of the page would be "Dashboard":

      Attachments

        1. MDL-73114_Test Passed.PNG
          66 kB
          Gladys Basiana
        2. mycourses_welcome_menuwrong.png
          70 kB
          Sara Arjona (@sarjona)
        3. Screenshot 2021-11-18 at 14.46.15.png
          121 kB
          Rafael Lechugo
        4. Screenshot 2021-11-18 at 14.46.28.png
          105 kB
          Rafael Lechugo
        5. Screenshot 2021-11-24 at 11.34.02.png
          505 kB
          Rafael Lechugo
        6. Screenshot 2022-01-19 at 09.43.54.png
          195 kB
          Bas Brands

        Issue Links

          Activity

            People

              basbrands Bas Brands
              rafaellechugo Rafael Lechugo
              Mathew May Mathew May
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 35 minutes
                  4h 35m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.