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

The body tag on every page should identify the Moodle by attaching the site shortname as a CSS class

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      If there was a class on the body tag which identified the Moodle, this would allow CSS files to be shared between Moodles, or Moodles and other web properties while still alllowing some specific styles to be applied to each Moodle.

      The site shortname seems ideal for this, and should probably be appended with a string like "site-" or "moodle-" to prevent clashes. For example, on Moodle.org with shortname "moodle" it would look something like:

      body class="moodle-moodle other-classes etc.

      There may need to be a function that processes the shortname to make it CSS safe by removing odd characters etc.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10