1

Matrix 2.5.6 EE 2.6.1

I've got a matrix field that is behaving strangely. It only outputs one row despite having multiple rows added and then only outputs the cell names.

I've copied and pasted the field name and cell names to the template so that there is no chance of typos, but still it doesn't work as expected. I've also created a duplicate matrix field and inserted content into an entry and it behaves the same. There is however another matrix in the same entry with different content that works as expected.

My template code is below

          <ul>
          {near_hotels}
            <li><a href="{link}">{hotel}</a></li>
          {near_hotels}
          </ul>

I've attached a screenshot of the cell settings enter image description here

1 Answer 1

2

You’re missing the “/” in “{/near_hotels}”.

2
  • I am such an idiot. Time for more coffee.
    – CreateSean
    Sep 6, 2013 at 14:45
  • Happens to the best of us :) Sep 6, 2013 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.