# Brauche Hilfe bei der contenttype.xml (showInFrontend = true?)

**URL:** https://forum.shopware.com/t/brauche-hilfe-bei-der-contenttype-xml-showinfrontend-true/66532
**Category:** Programmierung
**Created:** [27. April 2020 um 13:45 UTC](https://forum.shopware.com/t/brauche-hilfe-bei-der-contenttype-xml-showinfrontend-true/66532 "2020-04-27T13:45:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Revilo](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Revilo](https://forum.shopware.com/u/Revilo)
#### Post date: [27. April 2020 um 13:45 UTC](https://forum.shopware.com/t/brauche-hilfe-bei-der-contenttype-xml-showinfrontend-true/66532/1 "2020-04-27T13:45:16Z")

</div>

Guten Tag liebe Shopware-Community,

ich würde gerne über ein Plugin einen Inhaltstypen anlegen. Dieser soll auch eine eigene Seite im Listing, sowie Detailsseiten haben.&nbsp;  
Das lässt sich ja laut dem Developer Guide innerhalb des Type-Tags mit true erreichen.  
Mein „Type-Head“ in der contenttype.xml&nbsp;sieht folgendermaßen aus:

```
            PlaceholderTypeName
            PlaceholderName
            sprite-building--plus
            name
            address
            logo
            true

```

Bei der Installation des Plugins bekomme ich allerdings immer diesen Fehler:

_Unable to parse file „/Applications/MAMP/htdocs/shopware/custom/plugins/Placeholder/Resources/contenttypes.xml“. Message: [ERROR 1871] Element ‚showInFrontend‘: This element is not expected. Expected is one of ( viewMetaTitleFieldName, viewMetaDescriptionFieldName, seoUrlTemplate, seoRobots, fieldSets ). (in /Applications/MAMP/htdocs/shopware/ - line 12, column 0)_

Irgendwie scheinen&nbsp;sich der Fehler und der&nbsp;Shopware Developer Guide über den „showInFrontend“-Tag uneinig zu sein…  
Hat jemand eine Idee wie ich das Ding zum Laufen bekomme (sodass der Inhaltstyp seine eigene Listing-/Detailseite bekommt)?

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [27. April 2020 um 13:50 UTC](https://forum.shopware.com/t/brauche-hilfe-bei-der-contenttype-xml-showinfrontend-true/66532/2 "2020-04-27T13:50:19Z")

</div>

Die Reihenfolge der Felder ist wichtig.&nbsp;[https://github.com/shopware/shopware/blob/5.6/engine/Shopware/Bundle/ContentTypeBundle/Resources/contenttypes.xsd#L23](https://github.com/shopware/shopware/blob/5.6/engine/Shopware/Bundle/ContentTypeBundle/Resources/contenttypes.xsd#L23)

---

<div class="post-metadata">

### Author: ![Revilo](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@Revilo](https://forum.shopware.com/u/Revilo)
#### Post date: [27. April 2020 um 14:10 UTC](https://forum.shopware.com/t/brauche-hilfe-bei-der-contenttype-xml-showinfrontend-true/66532/3 "2020-04-27T14:10:54Z")

</div>

Wow! So schnell eine Antwort, die dann auch noch die Lösung & mehr bietet. Vielen Dank!&nbsp;  
Jetzt läuft der Lachs&nbsp; ![Wink](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/wink.png "Wink")
