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

Images within the description of a page resource won't be displayed unless they are accompanied by text

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-73052-401
    • MDL-73052-master
    • Hide
      1. Login as admin and create a course.
      2. Add a new resource "Page" to your course
        • In the Description field, click in the editor on "Image" and add an image to the description page. You can check the "This image is decorative only" field.
        • Add some content to the "Page content" field.
        • In the Appearance section, ensure that the "Display page description" is checked. 
      3. Save and Display
      4. Check the image is displayed in the description field.
      5. Go to Page settings and under the image place the text "Random text" in the Description field.
      6. Save and Display
      7. Check the image and the random text are displayed.
      8. Go to Page settings and, in the Appearance section, uncheck the "Display page description" setting. 
      9. Save and Display
      10. Check the image and the random text are NOT displayed.
      Show
      Login as admin and create a course. Add a new resource "Page" to your course In the Description field, click in the editor on "Image" and add an image to the description page. You can check the "This image is decorative only" field. Add some content to the "Page content" field. In the Appearance section, ensure that the "Display page description" is checked.  Save and Display Check the image is displayed in the description field. Go to Page settings and under the image place the text "Random text" in the Description field. Save and Display Check the image and the random text are displayed. Go to Page settings and, in the Appearance section, uncheck the "Display page description" setting.  Save and Display Check the image and the random text are NOT displayed.
    • HQ 2023 Sprint i2.1 Moppies

      Moodle version: 3.10.3 (Build: 20210325)

      Booster theme version: 2020110900

       

       

      The scenario:

      • create a page resource
      • edit it:
      • place in the description just one element: an image (provide an URL)
      • uncheck: "Display description on course page"
      • in "Appearance" check: "Display page description"
      • in content field: type some random text
      • save and display

      Back on the "page resourse" page (/mod/page/view.php?id=)

      no image is shown in the description, only the random text in content.

       

      If the image in the description is accompanied by only one text character, even a blanc ( {{}}) the image will be displayed.

       

      Couldn't find any closely related issues:

      https://tracker.moodle.org/issues/?jql=project%20%3D%20MDL%20AND%20summary%20~%20page%20AND%20summary%20~%20description%20ORDER%20BY%20created%20DESC

       

      Any clues appreciated.

       

      Cheers

       

      Peter 

       

        1. Screenshot 2021-11-11 at 10.45.42.png
          Screenshot 2021-11-11 at 10.45.42.png
          47 kB
        2. MDL-73052_1.png
          MDL-73052_1.png
          94 kB
        3. MDL-73052_2.png
          MDL-73052_2.png
          95 kB
        4. MDL-73052_3.png
          MDL-73052_3.png
          18 kB

            sarjona Sara Arjona (@sarjona)
            peta3000 Peter Traenkle
            Carlos Escobedo Carlos Escobedo
            Amaia Anabitarte Amaia Anabitarte
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 55 minutes
                2h 55m

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