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

Allow HTML block instances to specify additional CSS classes

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4
    • Blocks
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • Hide

      Create a new course.
      Add multiple HTML blocks with titles and content.
      Inspect each of the block's CSS class values in their outer divs (should be something like "block_html block")
      In each block add some values to the "Additional HTML classes" fields and save.
      Inspect each of the block's CSS class values again and the classes specified in the previous step should be appended to the original classes.

      Show
      Create a new course. Add multiple HTML blocks with titles and content. Inspect each of the block's CSS class values in their outer divs (should be something like "block_html block") In each block add some values to the "Additional HTML classes" fields and save. Inspect each of the block's CSS class values again and the classes specified in the previous step should be appended to the original classes.

    Description

      This patch adds a field to the per-instance configuration of the Moodle HTML block that allows an admin to specify additional CSS classes to aid with theming.

      Attachments

        Issue Links

          Activity

            People

              sry_not4sale Aaron Barnes
              sry_not4sale Aaron Barnes
              Frédéric Massart Frédéric Massart
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Davis Andrew Davis
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12