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

    • 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.
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • 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

              pferre22 Pau Ferrer
              jleyva Juan Leyva
              Dani Palou Dani Palou
              Juan Leyva Juan Leyva
              Berta Maroto Berta Maroto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Feb/17

                Time Tracking

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