THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Using Thelia 2.2.1

I found that in order to have paragraphs (<=> with blank lines between them), I have to include some html tags in the product's description field from the backoffice.
For instance, using <p> or <br/>
And, in the template, echo the description using {$DESCRIPTION nofilter}

Is there any other solution which would not involve any html integration in the description text ? <=> Is there any clean solution to use classic blank lines, with a template function  ?

thanks,
l.

Offline


So, I've been looking in the smarty documentation and in some code examples,
and I can use :

{$DESCRIPTION|replace:"\n":"<br/>" nofilter}

to dynamically insert <br/> tags to show the blank lines, allowing me not to use any html code in the product's description field.

If anyone has a better solution, I'm all ears.
Regards,
l.

Offline


Activate TinyMCE module, and you'll get a WYSIWYG editor for the description fields.


OpenStudio Toulouse