# Truncate komplett deaktivieren für Listing, ob 1-col oder 100-col! aber wie?

**URL:** <https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608>\
**Category:** Themes & Design\
**Created:** [8. Mai 2016 um 17:04 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608 "2016-05-08T17:04:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamedalhakim](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mohamedalhakim](https://forum.shopware.com/u/mohamedalhakim)\
**Post date:** [8. Mai 2016 um 17:04 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608/1 "2016-05-08T17:04:52Z")

</div>

Hallo

Ich verzweifele langsam

habe schon fast alles ausprbiert.

wie deaktivere ich die Truncate Funktion in Shopware (SW 5.1.5)

Ich habe den originalen Code von Shopware:

```
{* Description *}
		{block name='frontend_listing_box_article_description'}
			{if $sTemplate eq 'listing-1col'}
				{assign var=size value=290}
			{else}
				{assign var=size value=600}
			{/if}
			
				{if $sTemplate}
					{$sArticle.description_long|strip_tags|truncate:$size}
				{/if}
			
		{/block}

```

mit dem hier modifiziert:

&nbsp;

```
 {* Description *}
        {block name='frontend_listing_box_article_description'}
                {if $sTemplate eq 'listing-2col'}
                         {assign var=size value=270}
                {elseif $sTemplate eq 'listing-3col'}
                         {assign var=size value=5000}
                {elseif $sTemplate eq 'listing-4col'}
                         {assign var=size value=5000}
                {else}
                         {assign var=size value=500}
                {/if}
                
                        {if $sTemplate}
                                {$sArticle.description_long|strip_tags}
                        {/if}
                
        {/block}

```

Allerdings bringt auch diese Änderung keine Resulatet!

Ich habe sogar truncate:$size komplett entfernt. Dennoch sind die Produktbezeichungen abgehackt!

&nbsp;

danke für jeden Tipp!

und vieleicht sollte Shopware diese Funktion auf wunsch deaktiveren lassen vom user!? Nicht jeder möchte sowas abgehacktes haben!!!

&nbsp;

Danke im voraus.

&nbsp;

---

<div class="post-metadata">

**Author:** ![useg](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@useg](https://forum.shopware.com/u/useg)\
**Post date:** [8. Mai 2016 um 17:59 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608/2 "2016-05-08T17:59:18Z")

</div>

den Code den du oben eingefügt hast ist aber vom alten Emotions-Template das weist du schon, weil du hier bei Shopware 5 gepostest hast.

Oder nutzt du bei Shopware 5 das alte Template?

Uwe

---

<div class="post-metadata">

**Author:** ![mohamedalhakim](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mohamedalhakim](https://forum.shopware.com/u/mohamedalhakim)\
**Post date:** [19. Juli 2016 um 09:36 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608/3 "2016-07-19T09:36:45Z")

</div>

nein, ich nutze das neue Template (responsiv)

&nbsp;

---

<div class="post-metadata">

**Author:** ![t2oh4e](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@t2oh4e](https://forum.shopware.com/u/t2oh4e)\
**Post date:** [19. Juli 2016 um 10:03 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608/4 "2016-07-19T10:03:35Z")

</div>

> [@mohamedalhakim schrieb:](https://forum.shopware.com/profile/15361/mohamedalhakim "mohamedalhakim")
> 
> Ich habe den originalen Code von Shopware:
> 
> […]

Der originale Code vom Shopware Responsive Theme sieht aber so aus: [https://github.com/shopware/shopware/blob/v5.1.5/themes/Frontend/Bare/frontend/listing/product-box/box-basic.tpl#L43-L48](https://github.com/shopware/shopware/blob/v5.1.5/themes/Frontend/Bare/frontend/listing/product-box/box-basic.tpl#L43-L48)

Sicher das du im richtigen Template arbeitest? Grundsätzlich ist das Vorgehen korrekt. Einfach das Truncate entfernen.

Das muss man auch nicht konfigurierbar machen. Geht im Template ganz einfach.&nbsp;

---

<div class="post-metadata">

**Author:** ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)\
**Post date:** [19. Juli 2016 um 10:05 UTC](https://forum.shopware.com/t/truncate-komplett-deaktivieren-fur-listing-ob-1-col-oder-100-col-aber-wie/36608/5 "2016-07-19T10:05:56Z")

</div>

Die übliche Frage 🙂 :  
Cache geleert und Theme neu kompiliert?
