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

Change the body class of plugin pages to standard component names (ex: mod_forum)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Currently in Moodle every page gets a id and class added to the <body> element that represents the structure leading to the page being called:

      e.g. mod-chat
      grade-report-grader

      After talking to Petr we think this should be changed to use hyphens rather than underscores for consistency, underscores being the preferred character.
      The only foreseeable problem with this is that the chat module has directories using underscores (which I've been told is a no-no anyway) so these would need to be renamed at the same type.

      If there are no arguments to doing this I'll look to tackle it while I work with all of the CSS for the base theme.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Tester:
              Nobody Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: