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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6
    • 2.4.1, 3.6
    • Themes
    • MOODLE_24_STABLE, MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • wip-MDL-37977-master
    • 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

      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.

        1. MDL-37977.PNG
          69 kB
          Anna Carissa Sadia

            marina Marina Glancy
            danmarsden Dan Marsden
            Ryan Wyllie Ryan Wyllie
            David Monllaó David Monllaó
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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