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

Enable users to personalise the name for the resource "Text and media area"

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • MDL-78474-master
    • Hide

      As a teacher, add a resource 'Text and media area' to a course.
      While doing this, try to create the resource:
      a) without any specified 'name'
          1. On a course page, enable edit mode
          2. Add a new activity and select "Text and media area"
          3. In the activity setting page, keep the 'Name' field empty and add 'some text' in the 'Text' field
          4. Click "Save and return to course" button
          5. On the course page, disable edit mode
          6. Check the course page, 'some text' should be displayed as the name of that "Text and media area" activity in the course index menu.
      b) with any specified 'name'
          1. On a course page, enable edit mode
          2. Add a new activity and select "Text and media area"
          3. In the activity setting page, add 'Test Name 1' in the 'Name' field
          4. Add 'some text' in the 'Text' field
          5. Click "Save and return to course" button
          6. On the course page, disable edit mode
          7. Check the course page, 'Test Name 1' should be displayed as the name of that "Text and media area" activity in the course index menu.


      c) Connect to the site using the mobile app and repeat steps a) and b) to ensure that the changes propagate to the Mobile app as expected

      Show
      As a teacher, add a resource 'Text and media area' to a course. While doing this, try to create the resource: a) without any specified 'name'     1. On a course page, enable edit mode     2. Add a new activity and select "Text and media area"     3. In the activity setting page, keep the 'Name' field empty and add 'some text' in the 'Text' field     4. Click "Save and return to course" button     5. On the course page, disable edit mode     6. Check the course page, 'some text' should be displayed as the name of that "Text and media area" activity in the course index menu. b) with any specified 'name'     1. On a course page, enable edit mode     2. Add a new activity and select "Text and media area"     3. In the activity setting page, add 'Test Name 1' in the 'Name' field     4. Add 'some text' in the 'Text' field     5. Click "Save and return to course" button     6. On the course page, disable edit mode     7. Check the course page, 'Test Name 1' should be displayed as the name of that "Text and media area" activity in the course index menu. c) Connect to the site using the mobile app and repeat steps a) and b) to ensure that the changes propagate to the Mobile app as expected

      As a teacher
      I would like to set the name of a "Text and media area" resource in my Moodle course
      to be more flexible in using this elements.

       

      Current behaviour:

      • At the moment there is no option to set the name of the resource 'Text and media area' on your own.
      • The name is set automatically based on the written text in the field.
      • This name is shown in different views as well as in the course index and in the activity completion.
      • For some didactical reasons and especially for a better accessibility of the element, it should be possible to define it on your own.

       

      Proposed feature:

      • The field 'name' should be visible in the module settings.
      • It should be optional.
      • If the field 'name' is not filled, it should be filled automatically based on the written text in the field 'text'.
      • If there's any text in the field 'name', this should be shown and can be overwritten at any time later, via the module settings.

       

      Working code

      This was a small project of the MoodleMoot DACH 2023 (in Zurich), working code will be added soon.

            aydevworks Alex Yeung
            mreichel Martin W. Reichel
            Luca Bösch Luca Bösch
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            11 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 12 minutes
                1h 12m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.