Custom Fields
Re-Envisioned
Support MB Views no twig tags rendering

  • Creator
    Topic
  • #20332
    Resolved MR MICHAEL BRIORDAN
    Participant

    Hello,

    Unable to load any twig tags in views – output HTML is not recognising either the for loops or anything else. What am I doing wrong?

    <table>
        <tr>
            <th></th>
            <th>Date</th>
            <th>Name</th>
            <th>Location</th>
        </tr>
        
        {% for post in query.posts %}
            <tr>
                <td><a href="{{ post.url }}">Detail</a>
                </td>
                <td>{{ post.date }}</td>
                <td>{{ post.name }}</td>
                <td>{{ post.city }}</td>
           </tr>
        {% endfor %}
    </table>
Viewing 3 replies - 11 through 13 (of 13 total)
Viewing 3 replies - 11 through 13 (of 13 total)
  • You must be logged in to reply to this topic.