Quantcast
Channel: Neueste Diskussionen - Shopware Community Forum
Viewing all articles
Browse latest Browse all 14594

Templates im Plugin Theme werden falsch extended

$
0
0

Shopware Version 5.2.2

Ich habe eine Plugin erstellt gemäßt dem neuen Plugin System (https://developers.shopware.com/developers-guide/plugin-system/)

In diesem Plugin möchte ich nun ein Theme erstellen und das "Responsive" Theme erweitern.

Die Verzeichnisstruktur ist demnach diese:

Hier der Inhalt der Theme.php:

<?php

namespace Shopware\Themes\MyTheme;

use Shopware\Components\Form as Form;

class Theme extends \Shopware\Components\Theme
{
    protected $extend = 'Responsive';

    protected $name = <<<'SHOPWARE_EOD'
My Theme
SHOPWARE_EOD;

    protected $description = <<<'SHOPWARE_EOD'

SHOPWARE_EOD;

    protected $author = <<<'SHOPWARE_EOD'

SHOPWARE_EOD;

    protected $license = <<<'SHOPWARE_EOD'

SHOPWARE_EOD;

    public function createConfig(Form\Container\TabContainer $container)
    {
    }
}

Ich bekomme allerdings immer einen Fehler wenn ich nun ein Parent Template extende (custom/plugins/MyPlugin/Resources/Themes/Frontend/MyTheme/frontend/index/index.tpl):

{extends file='parent:frontend/index/index.tpl'}

illegal recursive call of "parent:frontend/index/index.tpl"


Anscheinend will er sich immer selber extenden und nicht das Template des Parent Themes


Viewing all articles
Browse latest Browse all 14594


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>