Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1931

Show activities description in the section/s page when the "Show description" setting is selected

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Navigate to a course section. (i.e English Pronunciation)
      2. Check that on modules list, modules show the description if show description is enabled.
      3. Check "Module 3 project" won't show the description if you don't enter the activity (show description is disabled)
      4. Check "Final project" shows the description bellow the activity title.
      Show
      Navigate to a course section. (i.e English Pronunciation) Check that on modules list, modules show the description if show description is enabled. Check "Module 3 project" won't show the description if you don't enter the activity (show description is disabled) Check "Final project" shows the description bellow the activity title.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.2.1

      Description

      Right now, if the "Show description" setting is enabled for an activity we are not displaying the description in the section/s contents page.

      We should display it to be consistent with Moodle web.

      It is easy to know when that setting is enabled, right now if we receive a description for a module via the course_get_contents WS it means that is enabled:

      if (!empty($cm->showdescription) or $cm->modname == 'label') {
          // We want to use the external format. However from reading get_formatted_content(), $cm->content format is always FORMAT_HTML.
          list($module['description'], $descriptionformat) = external_format_text($cm->content,
                                      FORMAT_HTML, $modcontext->id, $cm->modname, 'intro', $cm->id);
      }
      

      For small screens (phones) description will be shortened and for tablets it will show the full text.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferre22 Pau Ferrer
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Dani Palou
              Integrator:
              Juan Leyva
              Tester:
              Berta Maroto
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Feb/17

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 hours
                  5h
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified