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

Move frontpage html from index.php to renderer - allow theme to override $CFG->frontpageloggedin and $CFG->frontpage

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.1, 3.6
    • Fix Version/s: 3.6
    • Component/s: Themes
    • Labels:
    • Testing Instructions:
      Hide

      Ensure that front page is displayed the way it was before the change

      1. As admin go to Site administration>Front page settings
      2. Change settings 'frontpage' and 'frontpageloggedin' to display everything
      3. Add some posts to news forum on the front page
      4. Make sure everything is displayed on frontpage as expected, for both logged in user and guest
      5. Login as admin again, set "Include a topic section" to yes, add text and modules on frontpage
      6. Edit config.php and set $CFG->customfrontpageinclude to some custom HTML page filepath (this should be path in filesystem, not url)
      7. Make sure it is displayed on frontpage INSTEAD of frontpage summary and modules ABOVE the news and course listings
      Show
      Ensure that front page is displayed the way it was before the change As admin go to Site administration>Front page settings Change settings 'frontpage' and 'frontpageloggedin' to display everything Add some posts to news forum on the front page Make sure everything is displayed on frontpage as expected, for both logged in user and guest Login as admin again, set "Include a topic section" to yes, add text and modules on frontpage Edit config.php and set $CFG->customfrontpageinclude to some custom HTML page filepath (this should be path in filesystem, not url) Make sure it is displayed on frontpage INSTEAD of frontpage summary and modules ABOVE the news and course listings
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      wip-MDL-37977-master

      Description

      It would be nice if a theme could override these settings
      example:
      the normal site level settings could be set to show site news on the homepage first and the list of courses a user is enrolled in is listed in a block on the page.

      but - it would be good if the mymobile theme could set the frontpage to show the list of a users enrolled courses as the first item - so when users hitting the site with a mobile device get quick easy access to the courses they are in.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m