3

I have a Matrix field with a Rich Text Cell Type. When I output it on the frontend there are no paragraph tags. How do I add them? Other tags (e.g. <strong> display fine).

enter image description here

{exp:channel:entries channel="channel_faq"}
{matrix_faqs}
    <dt>{question}</dt>
        <dd>{answer}</dd>
{/matrix_faqs}
{/exp:channel:entries}

EE 2.6.1

Matrix 2.5.6

0
2

Go into Admin > Channel Administration > Channels > Edit Preferences (beside the appropriate channel). Under “Channel Posting Preferences”, make sure that the “Default HTML formatting in channel entries” setting is set to “Allow ALL HTML”.

2
  • Thanks @Brandon for the lightning quick response, but I can confirm I already have it set to "Allow ALL HTML" on the Channel. I've tried changing it and setting it back, but no effect.
    – jkns.co
    Sep 4 '13 at 15:03
  • 2
    In that case it sounds like a bug with EE’s RTE field. You would be far from the first person to have similar issues with it. Most people end up just going with a third party WYSIWYG fieldtype like Wygwam. Sep 4 '13 at 16:36
1

To help you, try this.

Go to the following db table and check that your paragraph tags are being saved: exp_matrix_data

If they dont exist then the issue is with matrix cell.

If the do exist, then check the source code of the rendered html page.

2
  • Thanks @dadonbike. I've checked the exp_matrix_data and there is no markup for paragraphs (<p>) in there. I can see other markup (e.g. <b>). So the issue is with Matrix?
    – jkns.co
    Sep 5 '13 at 7:53
  • The gentleman here, Brandon Kelly has also given you a clue. Hes also the guy who wrote Matrix, so now you know the issue is with Matrix. Beyond that i cant help you.
    – Lloyd Hill
    Sep 5 '13 at 9:26

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.