dataa mapping with simple text-element for shoppingworld won't work

Good evening,

im trying to build an Element for the shopping worlds.

My aim is to use the data-mapping to get the category.name and in the config part of the element to select h1, h2, h3, h4, h5, h6…

The standard text-element displays this value, if i embed it.

I have copied this element (src/Storefront/Resources/views/storefront/element/cms-element-text.html.twig) in my own plugin. But if i make the exact same thing with the default text element with my own created element, it won’t display the category.name.

everything is identical to the default element from shopware, except the name of it… 

 

 

 

in the frontend it only shows “category.name” and not the category name itself, like with the default element.

 

 

data in my own element is empty, data in default element is filled…