View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007667 | Apex Theme | Apex Theme | public | 2024-06-07 20:01 | 2024-06-18 10:09 |
Reporter | mf | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 1.3.0 | ||||
Summary | 0007667: HTML not rendered in the short description field | ||||
Description | In OXID 6.5, HTML was rendered in the Short Description field. In OXID 7, this field is only displayed as text in articles. See image attachments. To get the old behavior back you have to change the source/Application/views/apex/tpl/page/details/inc/productmain.html.twig the line must be adjusted <p class="details-shortdesc" id="productShortdesc">{{ oDetailsProduct.oxarticles__oxshortdesc.value }} to <p class="details-shortdesc" id="productShortdesc">{{ oDetailsProduct.oxarticles__oxshortdesc.value|raw }} Product listing/search is also affected. | ||||
Steps To Reproduce | - in admin area - product > Short Descr. - add a list in html code (The actual example cannot be posted here because the HTML is rendered) - open that product in frontend | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
related to | 0007674 | resolved | anton.fedurtsya | module Visual CMS | Escaped Help text in widgets |
|
-MK |
|
The short description is no field that is meant to contain HTML code (that's what the long description field is for). You can easily change the template for your own theme, but for the default theme this will stay as it is. For security reasons only very specific fields may contain HTML. That is something that twig employs by default which might be confusing at first. |