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

allow resources/activities to be hidden but available/active

    Details

    • Testing Instructions:
      Hide

      Create courses in all available course formats (topics, weeks, social, singleactivity), add modules to each of them (add modules to social activities block in social format). Add modules to the site front page and to the main menu block.

      To eliminate regressions (this branch completely re-writes javascript for all modules and sections actions) in editing mode:

      • make sure all activities and sections names are editable
      • drag&drop works for modules and sections
      • you are able to hide, duplicate, indent, delete activities
      • you are able to hide, highlight (topics only), edit and delete sections
      • set up topics/weeks course to display one section per page, go to the section page and make sure after any of the actions above the links to "edit module" or "edit section" contain &sr=xxx (where xxx is the section number).

      New functionality testing:
      The third mode for activity visibility is enabled only if you enable $CFG->allowstealth

      For visible activities inside visible sections in the activity action menu you can choose "Hide". After it is hidden you can either choose "Show" or "Make available". When activity is "Available but not visible on course page" you can choose "Show" or "Make unavailable". In the module edit form there should be one dropdown with three possible states.

      For activities inside hidden sections you can switch between "available" and "not availabe" but can not make activity fully "Visible".

      "Stealth" activities ("Available but not visible on course page") will be visible to the teacher but should not be visible to the student on the course page. However student should be able to access these activities by following URL.
      Gradebook, recent activity and other blocks and reports also display "stealth" activities!

      For activities inside hidden or orphaned sections (weeks/topics formats), there should be only two visibility states.

      Another UI change from this issue: hidden or stealth activities now have a text dislayed under the activity name: "Hidden from students" or "Available but not displayed on course page" respectfully. Previously "Hidden from students" was an accessibility-only text

      Show
      Create courses in all available course formats (topics, weeks, social, singleactivity), add modules to each of them (add modules to social activities block in social format). Add modules to the site front page and to the main menu block. To eliminate regressions (this branch completely re-writes javascript for all modules and sections actions) in editing mode: make sure all activities and sections names are editable drag&drop works for modules and sections you are able to hide, duplicate, indent, delete activities you are able to hide, highlight (topics only), edit and delete sections set up topics/weeks course to display one section per page, go to the section page and make sure after any of the actions above the links to "edit module" or "edit section" contain &sr=xxx (where xxx is the section number). New functionality testing: The third mode for activity visibility is enabled only if you enable $CFG->allowstealth For visible activities inside visible sections in the activity action menu you can choose "Hide". After it is hidden you can either choose "Show" or "Make available". When activity is "Available but not visible on course page" you can choose "Show" or "Make unavailable". In the module edit form there should be one dropdown with three possible states. For activities inside hidden sections you can switch between "available" and "not availabe" but can not make activity fully "Visible". "Stealth" activities ("Available but not visible on course page") will be visible to the teacher but should not be visible to the student on the course page. However student should be able to access these activities by following URL. Gradebook, recent activity and other blocks and reports also display "stealth" activities! For activities inside hidden or orphaned sections (weeks/topics formats), there should be only two visibility states. Another UI change from this issue: hidden or stealth activities now have a text dislayed under the activity name: "Hidden from students" or "Available but not displayed on course page" respectfully. Previously "Hidden from students" was an accessibility-only text
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_28_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      wip-MDL-4782-master-3

      Description

      Resource and activities have now two states: eye open = courses available and eye closed = course unvailable. I would like to suggest to have three states: available, hidden but active, hidden and inactive.

      The first and the last are what we have now. The third state would allow us more flexibility in making course designs. Specifically, it would allow us to have linkable resources/actvities within a course or globally without much pain.

      I imagine this working the same way the three states of group setting (no group, group, forced group) function. Both hidden states would behave identical except for the icon in the course edit mode and being accessible through links.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17