This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

banshee181139655
banshee181139655

I created a plugin, and now i see my records in a list format. I would like only one in a column. This wars my code for lavarel and blade: @foreach($products->chunk(3) as $chunk)

Now i try this with october and twig, but nothing works. This is my code with a {{ record.title }} `

      <div class="card h-100">

        <a href="#"><img class="card-img-top" src="http://placehold.it/700x400" alt=""></a>
        <div class="card-body">

{% for record in records %}

    <li>
        {# Use spaceless tag to remove spaces inside the A tag. #}
        {% spaceless %}
            {% if detailsPage %}
                <a href="{{ detailsPage|page({ (detailsUrlParameter): attribute(record, detailsKeyColumn) }) }}">
            {% endif %}

           {{ record.title }}

            {% if detailsPage %}
                </a>
            {% endif %}
        {% endspaceless %}
    </li>
{% else %}
    <li class="no-data">{{ noRecordsMessage }}</li>
{% endfor %}

`

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.