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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 2.0
    • Themes
    • None
    • MOODLE_19_STABLE
    • 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

            timhunt Tim Hunt
            bawjaws David Scotson
            Huong Nguyen, Bas Brands, Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10