Moodle
  1. Moodle
  2. MDL-32476 Course page improvements for 2.3
  3. MDL-32504

Add new course setting to choose between paged and scrolling layouts

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Course
    • Labels:
      None
    • Rank:
      39396

      Description

      Add a new field to the database called mdl_course.coursedisplay to store the teacher's preference.

      Add a new setting named "Course display format" to the course setting page for this field with two settings:
      #Show all sections on one page - exactly as things are currently, and will be the default setting
      #Show one section per page - will abbreviate the course page to a list of links to individual sections

      Note that it's up to the course format to interpret this setting. Course formats can use the setting or completely ignore it if they want.

        Activity

        Hide
        Dan Poltawski added a comment -

        I've coded this in the most basic way possible, not done anything fancy with the course setting screen, just added the setting

        Show
        Dan Poltawski added a comment - I've coded this in the most basic way possible, not done anything fancy with the course setting screen, just added the setting
        Hide
        Dan Poltawski added a comment -

        Hi Helen,

        I was wondering if you could help me with the lang strings for this setting (which I have yet to implement). Hoping you understand the idea of the setting.. Here is what i've written in the setting (see also screenshot):

        $string['coursedisplay'] = 'How should the course be displayed?';
        $string['coursedisplay_help'] = 'Your course can be displayed with all sections visible on one page, or split up into a section on each page.';
        $string['coursedisplay_single'] = 'Show all sections on one page';
        $string['coursedisplay_multi'] = 'Show one section per page';

        Show
        Dan Poltawski added a comment - Hi Helen, I was wondering if you could help me with the lang strings for this setting (which I have yet to implement). Hoping you understand the idea of the setting.. Here is what i've written in the setting (see also screenshot): $string ['coursedisplay'] = 'How should the course be displayed?'; $string ['coursedisplay_help'] = 'Your course can be displayed with all sections visible on one page, or split up into a section on each page.'; $string ['coursedisplay_single'] = 'Show all sections on one page'; $string ['coursedisplay_multi'] = 'Show one section per page';
        Hide
        Martin Dougiamas added a comment -

        How about:

        $string['coursedisplay'] = 'Course layout';
        $string['coursedisplay_help'] = 'If your chosen course format supports it, this setting can switch between two different layouts. The first shows the whole course on one page, while the second will split each section onto separate pages.';

        Show
        Martin Dougiamas added a comment - How about: $string ['coursedisplay'] = 'Course layout'; $string ['coursedisplay_help'] = 'If your chosen course format supports it, this setting can switch between two different layouts. The first shows the whole course on one page, while the second will split each section onto separate pages.';
        Hide
        Helen Foster added a comment -

        I like Martin's suggestion of 'Course layout' for the coursedisplay string (though the format_help string will need a little rewording as it mentions layout of the course page).

        I'd suggest the following for coursedisplay_help:

        This setting determines whether the whole course is displayed on one page or split over several pages. The setting has no affect on certain course formats, such as SCORM format.

        Show
        Helen Foster added a comment - I like Martin's suggestion of 'Course layout' for the coursedisplay string (though the format_help string will need a little rewording as it mentions layout of the course page). I'd suggest the following for coursedisplay_help: This setting determines whether the whole course is displayed on one page or split over several pages. The setting has no affect on certain course formats, such as SCORM format.
        Hide
        Dan Poltawski added a comment -

        This has been integrated as part of the pull in MDL-32508

        Show
        Dan Poltawski added a comment - This has been integrated as part of the pull in MDL-32508
        Hide
        Tim Barker added a comment -

        QA tests have already been written for this by Dan P.

        I have expanded upon Dan's tests to include related functionality, browser compatibility etc.

        Show
        Tim Barker added a comment - QA tests have already been written for this by Dan P. I have expanded upon Dan's tests to include related functionality, browser compatibility etc.
        Hide
        Mary Cooch added a comment -

        This new setting has been documented here http://docs.moodle.org/23/en/Course_settings#Course_layout (so removing label)

        Show
        Mary Cooch added a comment - This new setting has been documented here http://docs.moodle.org/23/en/Course_settings#Course_layout (so removing label)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: