Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-686

HTML produced by calendar template is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.3.5
    • paragraphs
    • None

      <a/> or <td/> tags are not closed properly, depending on the conditions.

                  <tr>
                      <th class="cw">${model.getCalendarItem(x, 1).week}</th>
                      [#list 1 .. 7 as y]
                          [#assign item = model.getCalendarItem(x, y)]
                          <td ${mgnl.createAttribute("class", item.cssClass)}>
                              [#if item.visible]
                                  [#if item.link??]
                                      <a href="${item.link}">${item.day}</td>
                                  [#else]
                                      ${item.day}
                                  [/#if]
                              [/#if]
                      [/#list]
                  </tr>
      

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: