# Artikelbezeichnung wird abgeschnitten

**URL:** <https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426>\
**Category:** Themes & Design\
**Created:** [21. März 2016 um 10:51 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426 "2016-03-21T10:51:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![amanogarnele](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@amanogarnele](https://forum.shopware.com/u/amanogarnele)\
**Post date:** [21. März 2016 um 10:51 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/1 "2016-03-21T10:51:37Z")

</div>

Hallo zusammen,

Ich komme einfach nicht weiter.

Meine Artikel-Titel werden im Detail-Listing immer abgekürt.

In der box.tpl habe ich das Truncate entfernt - Änderungern werden hier auch übernommen (also wenn Ich weniger mache z.b.) Trotzdem wird nicht alles angezeigt.

Dann habe Ich gesehen das auch die .less Datei wohl eine Rolle spielt. Bin jetzt aber nicht sicher ob meine Änderung überhaupt gezogen wird?

Habe die original product-box.less kopiert in das entsprechende Unterverzeichniss in meinem Template (/mutrado.de/themes/Frontend/MEIN\_TAMPLATE/frontend/\_public/src/less/\_modules) und dort angepasst:

Also das height

```
	.product--title {
		.unitize-height(150);
		.unitize-margin(0, 0, 5, 0);
		.unitize(font-size, 10);
		.unitize(line-height, 20);
		display: block;
		width: 100%;
		color: @text-color-dark;
		font-weight: bold;
		overflow: hidden;

		&:hover {
			color: @link-color;
		}
	}

```

Habe aber irgendwie das Gefühl das diese Änderung trotz Cache leeren und Theme kompilieren NICHT genommen wird.

Habe Ich irgendwo einen Denkfehler?

---

<div class="post-metadata">

**Author:** ![amanogarnele](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@amanogarnele](https://forum.shopware.com/u/amanogarnele)\
**Post date:** [21. März 2016 um 11:02 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/2 "2016-03-21T11:02:32Z")

</div>

Habe meinen Denkfehler gefunden!

Ich habe vergessen die neue less Datei über die all.less einzubinden.

Jetzt funktionierts!

---

<div class="post-metadata">

**Author:** ![malzfons](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@malzfons](https://forum.shopware.com/u/malzfons)\
**Post date:** [27. Oktober 2016 um 06:39 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/3 "2016-10-27T06:39:16Z")

</div>

Hallo,

leider hat es bei mir nicht geklappt.

In die all.less habe ich @&nbsp;import “\_modules/product-box.less”; geschrieben. Was das wohl falsch?

muss da vielleicht product–title.less rein?

Es wäre vielleicht nicht schlecht dass Shopware selber das von 50 auf 80 Zeichen erhöht. Vielleicht beim nächsten Update. Sonst lauten einige Artikelnamen fast gleich im Listing, was nur Verwirrung beim Kunden schafft.

Viele Grüße

Matthias

&nbsp;

---

<div class="post-metadata">

**Author:** ![steinsoftware](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@steinsoftware](https://forum.shopware.com/u/steinsoftware)\
**Post date:** [31. Oktober 2016 um 14:34 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/4 "2016-10-31T14:34:39Z")

</div>

Einfach mal die Anleitung durchlesen:

```
@import '_modules/product-box' 

```

müsste es heißen, wenn die Datei product-box.less im Verzeichnis EIGENES\_THEME/frontend/\_public/src/less/\_modules/ liegt.

---

<div class="post-metadata">

**Author:** ![Kulakowski](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Kulakowski](https://forum.shopware.com/u/Kulakowski)\
**Post date:** [1. November 2016 um 13:27 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/5 "2016-11-01T13:27:33Z")

</div>

Gibt es evtl. ein Plugin für längere Artikelbezeichnung im Listing? Oder hat jemand lust eins zu schreiben? 😃

&nbsp;

Besten Gruß,

&nbsp;

Matthias

&nbsp;

---

<div class="post-metadata">

**Author:** ![bitwicht](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@bitwicht](https://forum.shopware.com/u/bitwicht)\
**Post date:** [4. März 2017 um 07:24 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/6 "2017-03-04T07:24:13Z")

</div>

Du musst einfach den Wer 50 verändern in der box-basic.tpl veränern:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\* Product name \*}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {block name=‘frontend\_listing\_box\_article\_name’}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=“product–title”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title="{$sArticle.articleName|escapeHtml}"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$sArticle.articleName|truncate: **50** |escapeHtml}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/block}

---

<div class="post-metadata">

**Author:** ![artidomo](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@artidomo](https://forum.shopware.com/u/artidomo)\
**Post date:** [1. Januar 2019 um 17:13 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/7 "2019-01-01T17:13:32Z")

</div>

wann baut mal einer ein Plugin für DAU´s und faule?

lg

Alex

---

<div class="post-metadata">

**Author:** ![malzfons](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@malzfons](https://forum.shopware.com/u/malzfons)\
**Post date:** [1. Januar 2019 um 17:50 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/8 "2019-01-01T17:50:53Z")

</div>

ich hatte das damals dann doch hingebracht.

is ja schon 2 jahre alt. nen plugin braucht man da auf keinen fall. das wäre wie mit kanonen auf spatzen.

ich hatte nur damals noch keine ahnung vom theme und dessen vererbungen. im grunde heisst das nur, dass man ein eigenes theme haben muss und 2 sachen in diesem theme anlegen muss.

hast du auf deim server zugriff auf die dateien? also auch auf die theme dateien? dann helfe ich dir gerne weiter.

man muss einmal in der less und einmal in der tpl was ändern. wenn man weiss wie und wo ist das pillepalle.

hast du dein listing layout in smartphone hochkant auch 2 spaltig ausgelegt? wenn ja, dann wäre das hilfreich zu wissen.

und man müsste die schrift font ändern auf tahoma (wird enger). und die schriftgrösse etwas kleiner machen.&nbsp;

man staune, aber es ist in der tat nicht so einfach, lange artikelnamen in zeiten der responsiven designs noch einigermassen lesbar zu machen.

das würde uns teilweise auch zum problem, aber mit shopware kann man das so toll lösen, wie sonst nirgends.

&nbsp;

also wenn du meine Fragen beantwortet hast, dann helfe ich gerne weiter.

&nbsp;

Viele Grüße

Matthias&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![artidomo](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@artidomo](https://forum.shopware.com/u/artidomo)\
**Post date:** [1. Januar 2019 um 18:27 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/9 "2019-01-01T18:27:42Z")

</div>

sorry für´s doppelt posten.

Nachdem ich ein Theme mit der Ableitung vom responsive erstellen will kommt eine Fehlermeldung 503 (s.u.)&nbsp;

Aber es scheint teilweise geklappt zu haben, aber wenn ich es zuweise ist wieder das Demologo da und andere Farben. Normal?

lg

Alex

Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. An exception occurred while executing ‚INSERT INTO s\_core\_templates\_config\_elements (type, name, position, default\_value, selection, field\_label, support\_text, allow\_blank, less\_compatible, attributes, container\_id, template\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params [„theme-media-selection“, „mobileLogo“, 0, „s:47:„frontend/\_public/src/img/logos/logo–mobile.png“;“, „N;“, „\_\_smartphone\_\_“, null, 1, 0, „a:1:{s:14:„lessCompatible“;b:0;}“, 67, 24]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚24-mobileLogo‘ for key ‚template\_id\_name‘ in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 131 Stack trace: #0 vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(177): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), ‚INSERT INTO s\_c…‘, Array) #1 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1014): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 engine/Shopware/Components/Form/Persister/Theme.php(61): Doctrine\ORM\EntityManager-\>flush() #6 engine/Shopware/Components/Theme/Configurator.php(133): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 engine/Shopware/Components/Theme/Installer.php(169): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Artidomo\_tpl\Theme)) #8 engine/Shopware/Components/Theme/Installer.php(130): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 engine/Shopware/Controllers/Backend/Theme.php(194): Shopware\Components\Theme\Installer-\>synchronize() #10 engine/Library/Enlight/Controller/Action.php(193): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 engine/Library/Enlight/Controller/Dispatcher/Default.php(549): Enlight\_Controller\_Action-\>dispatch(‚listAction‘) #12 engine/Library/Enlight/Controller/Front.php(222): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 engine/Shopware/Kernel.php(202): Enlight\_Controller\_Front-\>dispatch() #14 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #17 vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #18 engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #19 shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #20 {main} &nbsp;

_OK_

---

<div class="post-metadata">

**Author:** ![malzfons](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@malzfons](https://forum.shopware.com/u/malzfons)\
**Post date:** [1. Januar 2019 um 18:29 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/10 "2019-01-01T18:29:44Z")

</div>

ist das die einzige änderung an deinem theme oder hast du mehrere änderungen im laufe der zeit da druff?

hast du cpanel am server?

&nbsp;

---

<div class="post-metadata">

**Author:** ![artidomo](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@artidomo](https://forum.shopware.com/u/artidomo)\
**Post date:** [1. Januar 2019 um 18:33 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/11 "2019-01-01T18:33:42Z")

</div>

ich habe nur eine index.tpl im von mir erstellten account ordner um die Kundennummer im Account anzuzeigen. Habe aber verstanden, dass man diese wohl nur im kopierten eigenen Theme platziert.

Server ist ein managed server von HostEurope, aber voller zugriff.

---

<div class="post-metadata">

**Author:** ![artidomo](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@artidomo](https://forum.shopware.com/u/artidomo)\
**Post date:** [1. Januar 2019 um 18:50 UTC](https://forum.shopware.com/t/artikelbezeichnung-wird-abgeschnitten/35426/12 "2019-01-01T18:50:09Z")

</div>

Ah ok, trotz&nbsp;Fehlermeldung hat es wohl geklappt, habe jetzt Logo, Einstellugen übertragen, sieht alles normal aus

Was mich wundert, dass die Kundennummer immernoch im Account angezeigt wird. Oder hat er die Anpassung mit geerbt und sie wäre beim nächsten Update weg? also auch im neuen Theme Ordner und frontend/accounts die index.tpl rein?

{extends file=‚parent:frontend/account/index.tpl‘}

{\* Welcome text \*}  
{block name=„frontend\_account\_index\_welcome“}  
&nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; {block name=„frontend\_account\_index\_welcome\_headline“}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
{s name=‚AccountHeaderWelcome‘}{/s}, {$sUserData.billingaddress.firstname} {$sUserData.billingaddress.lastname}

&nbsp; &nbsp; &nbsp; &nbsp; **&nbsp; &nbsp;Ihre Kundennummer: {$sUserData.additional.user.customernumber}**

&nbsp; &nbsp; &nbsp; &nbsp; {/block}  
&nbsp; &nbsp; &nbsp; &nbsp; {block name=„frontend\_account\_index\_welcome\_content“}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
{s name=‚AccountHeaderInfo‘}{/s}

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; {/block}  
&nbsp; &nbsp;&nbsp;
