Is there's a way to display column labels from a Matrix field in templates?

{column:label} : {columnvalue}

As far as I know, I don't think you can. However, Matrix has a table tag that quickly creates a HTML table:

{my_matrix_field:table cellspacing="0" cellpadding="0"}

If that doesn't work, I suggest using conditionals to hard code the 'labels' within your template. I would have to see a sample of the code first to help with conditionals

  • That's really pity- I spent a lot of time trying to extract the labels. Table is good, but it doesn't give you flexibility
    – Vladyn
    Jun 17 '18 at 20:46

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.