Moodle
  1. Moodle
  2. MDL-7401

Allow course formats to own database tables and stylesheets

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: Administration, Backup, Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE
    • Rank:
      34296

      Description

      Advanced course formats may need their own data and styles. It would be desirable if Moodle can:

      1) Support install.xml within a 'db' folder inside course format.

      2) Support backup for this data (probably with backuplib/restorelib similar to modules, in course format folder)

      3) Support stylesheets via styles.php in course format folder (as for modules)

      I intend to implement this at some time over the next few weeks.

      Martin comments about the styles one: 'You just need to modify the style_sheet_setup() function that searches for all these to make sure it also looks in the course/format/xx directories (with a $THEME->coursesheets to control it, documented in theme/standard/config.php).'

        Activity

        Hide
        Sam Marshall added a comment -

        All done (I hope). Documented in course/format/readme.txt.

        Show
        Sam Marshall added a comment - All done (I hope). Documented in course/format/readme.txt.

          People

          • Assignee:
            Sam Marshall
            Reporter:
            Sam Marshall
            Tester:
            Nobody
            Participants:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: