Nein, funktioniert leider auf keiner anderen Position.
Die .tpl Datei heisst contactformHome.tpl
und in der Datei ContactformHome.php habe ich angepasst
return $this->display(__FILE__, 'views/templates/widget/contactformHome.tpl');
Das funktioniert trotzdem nicht. Muss ich evt. in der DB was ändern?
Oder in der neuen Datei ContactHomeController!?
class ContactHomeControllerCore extends FrontController
{
public $php_self = 'contactHome';
public $ssl = true;
/**
* Assign template vars related to page content.
*
* @see FrontController::initContent()
*/
public function initContent()
{
parent::initContent();
$this->setTemplate('contactHome');
}
public function getBreadcrumbLinks()
{
$breadcrumb = parent::getBreadcrumbLinks();
$breadcrumb['links'][] = [
'title' => $this->getTranslator()->trans('Contact us', [], 'Shop.Theme.Global'),
'url' => $this->context->link->getPageLink('contactHome', true),
];
return $breadcrumb;
}
}
.png.022b5452a8f28f552bc9430097a16da2.png)