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

        Issue Links

          Activity

            People

              basbrands Bas Brands
              rafaellechugo Rafael Lechugo
              Mathew May Mathew May
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Gladys Basiana Gladys Basiana
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Huong Nguyen, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

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