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

Add ##otherfields##, [[FIELD#name]] and [[FIELD#description]] tags to the database templates in App

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0
    • 4.1.0
    • Database add-on
    • Hide

      This issue only needs to be tested in one device.

      1. Login as teacher in LMS > Course with database activities > Select any activity. If the field doesn't have any field, add at least 3 fields. If have at least 3 fields, go to "Templates" and in "Add entry template" use any of the 3 fields and ##otherfields##. Now when try to add an entry, you should be able to see every field in LMS.
      2. Login in the app as teacher and select the same activity as in the point 1. Add an entry filling every field, it should save everything successfully.
      3. Go to LMS > Course with database activities > Select any activity > Templates tab > Single view template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the single view template.
        1. Create an entry with at least 2 fields filled.
      4. Go to the app and select the same activity as in the point 3, select the entry that you created in the point 3.1. You should be able to see every field.
      5. Go to LMS > Course with database activities > Select any activity > Templates tab > List view template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the single view template.
        1. Create an entry with at least 2 fields filled.
      6. Go to the app and select the same activity as in the point 5 in the list you should be able to see every field.
      7. Go to LMS > Course with database activities > Select any activity > Templates tab > Advanced search template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the advanced search template.
      8. Go to the app and select the same activity as in the point 7, open search page, toggle "Advanced search" and you should be able to see every field.
      9. Go to LMS > Course with database activities > Select any activity > Templates tab > Add entry template. Add [image#name]] and [image#description]].
        1. Go to Course with database activities > Select any activity > Templates tab. Add [image#name]] and [image#description]] in "List view template", "Single view template" and "Advanced search template".
      10. Go to the app and select the same activity as in the point 9 add an entry and fill the fields image name and description.
      11. Open the entry added in the previous point. You should be able to see the image name and description.
      12. Check in the app if the fields [image#description] and [image#name] appears in the Advanced search template.
      Show
      This issue only needs to be tested in one device. Login as teacher in LMS > Course with database activities > Select any activity. If the field doesn't have any field, add at least 3 fields. If have at least 3 fields, go to "Templates" and in "Add entry template" use any of the 3 fields and ##otherfields##. Now when try to add an entry, you should be able to see every field in LMS. Login in the app as teacher and select the same activity as in the point 1. Add an entry filling every field, it should save everything successfully. Go to LMS > Course with database activities > Select any activity > Templates tab > Single view template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the single view template. Create an entry with at least 2 fields filled. Go to the app and select the same activity as in the point 3, select the entry that you created in the point 3.1. You should be able to see every field. Go to LMS > Course with database activities > Select any activity > Templates tab > List view template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the single view template. Create an entry with at least 2 fields filled. Go to the app and select the same activity as in the point 5 in the list you should be able to see every field. Go to LMS > Course with database activities > Select any activity > Templates tab > Advanced search template. Use any of the 3 fields and ##otherfields##. Now you should be able to see every field in the advanced search template. Go to the app and select the same activity as in the point 7, open search page, toggle "Advanced search" and you should be able to see every field. Go to LMS > Course with database activities > Select any activity > Templates tab > Add entry template. Add [image#name] ] and [image#description] ]. Go to Course with database activities > Select any activity > Templates tab. Add [image#name] ] and [image#description] ] in "List view template", "Single view template" and "Advanced search template". Go to the app and select the same activity as in the point 9 add an entry and fill the fields image name and description. Open the entry added in the previous point. You should be able to see the image name and description. Check in the app if the fields [image#description] and [image#name] appears in the Advanced search template.
    • MOODLE_401_STABLE
    • MOODLE_402_STABLE
    • Moodle App 4.2.0

      Database will change in 4.2. We have to apply the new changes.

      • ##otherfields## Should be replaced by all the fields not included in the template.
      • [field#name]] [field#description]] Should be improved (change regex) to match them and add the info (description or name) in the replacement.

      {*}Note: The field#name and field#description logic is almost the same as field#id but using the name and description information from the field.

       
      PHP parser can be found at mod/data/classes/template.php (preparse method for otherfields preprocess_tag_otherfields)

            alfonso.salces@moodle.com Alfonso Salces
            pferre22 Pau Ferrer
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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