Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

Footer Template wird nicht extended

$
0
0

Hi zusammen,

ich bin immer noch dabei, einige Extensions auf die neue Struktur umzustellen, allerdings geht das bei allen, bis auf die Footer Erweiterung:

So sieht die Struktur im Plugin aus:

meinplugin/Views/responsive/frontend/index/footer.tpl

Inhalt der footer.tpl:

 

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

{block name="frontend_index_footer_copyright" append}

Gib mir hier was aus!
  
{/block}              

Letzter Abschnitt im Plugin:

 

    public function onPostDispatchDetail(Enlight_Event_EventArgs $arguments)
    {

        /**@var $controller Shopware_Controllers_Frontend_Listing*/
        $controller = $arguments->getSubject();

        $controller->View()->addTemplateDir($this->Path() . 'Views/common/');

        if (Shopware()->Shop()->getTemplate()->getVersion() >= 3) {
            $controller->View()->addTemplateDir($this->Path() . 'Views/responsive/');
        } else {
            $controller->View()->addTemplateDir($this->Path() . 'Views/emotion/');
            $controller->View()->extendsTemplate('frontend/index/header.tpl');
            $controller->View()->extendsTemplate('frontend/detail/index.tpl');
        }

    }

Ich habe keinen blassen Schimmer, wieso das Template nicht ausgegeben wird!

LG und Dankeschön,

Chris


Viewing all articles
Browse latest Browse all 2871

Trending Articles