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

Error displayed if links are used in database templates

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.0
    • Database add-on
    • Hide

      This issue should be tested in Android and iOS.

      1. Go to LMS as admin / teacher > open any course with database modules > open a database module > edit list view templates. Edit repeated entry field adding an html that includes at least one anchor with href attribute. E.g:

      <div class="colleague-entry-value mt-4"><span class="colleague-entry-value-title font-weight-bold">[[Email-Adresse#name]]</span>
      <p><a href="mailto:[[Email-Adresse]]">[[Email-Adresse]]</a></p>
      </div>
      <div class="colleague-entry-value mt-4"><span class="colleague-entry-value-title font-weight-bold">[[Threema-ID#name]]</span>
      <p><a href="https://threema.id/[[Threema-ID]]">[[Threema-ID]]</a></p>
      </div> 

      2. Add an entry.

      3. Go to the app and open the entry in list view mode. It should be shown correctly.

      Show
      This issue should be tested in Android and iOS. 1. Go to LMS as admin / teacher > open any course with database modules > open a database module > edit list view templates. Edit repeated entry field adding an html that includes at least one anchor with href attribute. E.g: < div class = "colleague-entry-value mt-4" >< span class = "colleague-entry-value-title font-weight-bold" >[[Email-Adresse#name]]</ span > < p >< a href = "mailto:[[Email-Adresse]]" >[[Email-Adresse]]</ a ></ p > </ div > < div class = "colleague-entry-value mt-4" >< span class = "colleague-entry-value-title font-weight-bold" >[[Threema-ID#name]]</ span > < p >< a href = "https://threema.id/[[Threema-ID]]" >[[Threema-ID]]</ a ></ p > </ div > 2. Add an entry. 3. Go to the app and open the entry in list view mode. It should be shown correctly.
    • MOODLE_405_STABLE
    • Moodle Apps Sprint 2025-I1.2, Moodle Apps Sprint 2025-I1.3

      Hi,

      we are using a database as a staff panel to show all teachers at our school. Some fields of the database contain contact information. So I created links for those fields with simple link tags (<a>) in the templates, like the official documentation says.

      Here are two examples:

      <div class="colleague-entry-value mt-4">

        <span class="colleague-entry-value-title font-weight-bold">[Email-Adresse#name]]</span>
        <p>

          <a href="mailto:[[Email-Adresse]]">[[Email-Adresse]]</a>

        </p>

      </div>

      <div class="colleague-entry-value mt-4">

        <span class="colleague-entry-value-title font-weight-bold">[Threema-ID#name]]</span>

        <p>

          <a href="https://threema.id/[[Threema-ID]]">[[Threema-ID]]</a>

        </p>

      </div>

      In the browser the links are working fine, but the Moodle app just shows an error message: "Template has some errors and cannot be displayed."

      It would be really nice, if the links would work both in the browser and the app. At least it should not display an error message.

      Thanks in advance,

        Christian Wichmann

            alfonso.salces@moodle.com Alfonso Salces
            wichmann wichmann
            Pau Ferrer Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 28 minutes
                1d 28m

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