View Issue Details

IDProjectCategoryView StatusLast Update
0007667Apex ThemeApex Themepublic2024-06-18 10:09
Reportermf Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version1.3.0 
Summary0007667: HTML not rendered in the short description field
DescriptionIn 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
TagsNo tags attached.
Attached Files
image.png (147,957 bytes)   
image.png (147,957 bytes)   
image-2.png (164,450 bytes)   
image-2.png (164,450 bytes)   

Relationships

related to 0007674 resolvedanton.fedurtsya module Visual CMS Escaped Help text in widgets 

Activities

QA

2024-06-10 08:40

administrator   ~0016987

-MK

SvenBrunk

2024-06-13 14:31

manager   ~0017044

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.