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

Move Course/Frontpage views to a Renderer.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.10, 2.2.9, 2.3.6, 2.4
    • Fix Version/s: None
    • Component/s: Course, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE

      Description

      The current frontpage has hardcoded html in it. specifically in the index. It would be nice if those elements in the switch statement that then call the course/lib.php files could be moved to renderer.php for proper overriding. My current workaround is to comment out the <?php echo $OUTPUT->main_content() ?> with html comments (which still then does the processing) and write my own functions in the lib.php of the theme. This would help immensely with code organization and ease the upgrade procedure as well as reduce the processing time for the hack I have above.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                hsnopi Jeff Masiello
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Bas Brands, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: