-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Availability dataformcontent.

Availability dataformcontent

From MoodleDocs
Revision as of 23:14, 26 March 2015 by Itamar Tzadok (talk | contribs) (Created page with "{{Infobox plugin |type = Availability conditions |entry = http://moodle.org/plugins/view.php?plugin=availability_dataformcontent |tracker = https://tracker.moodle.org/browse/C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The Dataform content availability condition allows teachers to restrict user access to an activity or section based on content of a designated Dataform instance in the course.

Using the condition

Basic example

  • Enable conditional access in site administration
  • Go the course.
  • Add "Dashboard" Dataform
    • In the Dataform settings, set 'Separate participants' to 'Yes'
  • Add fields in the Dashboard Dataform
    • Add a text field with the name 'Conditional activity'
  • Add views in the Dashboard Dataform
    • Add an aligned view with the name 'List'
      • Set the view template to ##entries##
      • Uncheck all the view submission buttons
    • Set the 'List' view as the default view
    • Add an aligned view with the name 'Manage List'
  • Add conditional activiy
    • Add a Page resource in the course with the name 'Extra Page'.
    • In the Page settings add a Datafrom content restriction condition and select the Dashboard.
    • Set the condition to hidden.
  • As a student you will not see the Page resource.
    • Log in as a student.
    • You will not see the Extra Page resource in the course.
  • As a teacher, add an entry on behalf of the student to unlock the Extra Page resource.
    • Log in as a teacher.
    • Go the Dashboard.
    • Go to the Manage List view.
    • Click 'Add a new entry'.
    • Select the student in the entry user dropdown.
    • Enter the text Extra Page in the text field.
    • Save the entry.
  • Now the student can see and access the Extra Page resource.

Admin setting

df-availability-condition-admin-settings.png

The reserved field name and reserved filter name are also available via the plugin language strings. The language strings take effect when the admin settings remain empty.

Note: Moodle doesn't yet provide access to the admin settings page of availability condition plugins. You can still set these settings directly in config.php.


Installation

Git clone

Download

See also