Hallo zusamme,
ich würde gerne via Modul die Aktionen im Shop erweitern.
Leider klappt dies bis jetzt nicht wie gewünscht.
Ich möchte bei den Auswahlen der Aktionen (Promo, Aktion, Banner) eine weitere möglichkeit hinzufügen.
Im Ordner modules befindet sich ein Ordner test, darin enthalten:
Metadata.php
<?php
$aModule = array(
'id' => 'test',
'title' => 'Test',
'description' => 'test',
'thumbnail' => '',
'version' => '1.0',
'author' => '',
'email' => '',
'extend' => array(
'navigation' => 'test/navigation_custom',
),
'templates' => array(
'actions_main_custom.tpl' => 'test/out/admin/tpl/actions_main_custom.tpl'
)
);
navigation_custom.php
<?php
class navigation_custom extends navigation_custom_parent
{
public function render () {
$ret = parent::render();
if($ret == 'actions_main.tpl') {
return 'actions_main_custom.tpl';
} else {
return $ret;
}
}
}
und ein out Ordner mit weiteren Unterordnern (admin/tpl/actions_main_custom.tpl)
Modul ist im Backend installiert und zeigt auch keine Fehler.
Nur leider übernimmt es nicht die Änderungen im actions_main_custom.tpl.
Wenn ich direkt im actions_main.tpl arbeite, werden die Änderungen angezeigt, nur leider ist dies nicht Update-kompatibel
Irgendwelche Ideen? Habe ich einen denkfehler?
Schonmal danke :rolleyes: