add redirects to VendorList controller and ManufacturerList controller
Dieser Commit ist enthalten in:
Ursprung
c008ea62a7
Commit
792bedcedc
@ -18,5 +18,7 @@ $aLang = [
|
||||
'SHOP_MODULE_GROUP_d3PRGredirect_general' => 'anwenden auf',
|
||||
'SHOP_MODULE_d3PRGredirect_search' => 'Such-Controller',
|
||||
'SHOP_MODULE_d3PRGredirect_alist' => 'Artikellisten-Controller (Kategorien)',
|
||||
'SHOP_MODULE_d3PRGredirect_manufacturerlist' => 'Artikellisten-Controller (Hersteller)',
|
||||
'SHOP_MODULE_d3PRGredirect_vendorlist' => 'Artikellisten-Controller (Lieferanten)',
|
||||
'SHOP_MODULE_d3PRGredirect_contact' => 'Kontaktanfragen-Controller',
|
||||
];
|
||||
|
@ -17,11 +17,15 @@ namespace D3\PRGredirects\Modules\Application\Controllers {
|
||||
|
||||
use OxidEsales\Eshop\Application\Controller\ArticleListController;
|
||||
use OxidEsales\Eshop\Application\Controller\ContactController;
|
||||
use OxidEsales\Eshop\Application\Controller\ManufacturerListController;
|
||||
use OxidEsales\Eshop\Application\Controller\SearchController;
|
||||
use OxidEsales\Eshop\Application\Controller\VendorListController;
|
||||
|
||||
class ArticleListController_PRGredirect_parent extends ArticleListController {}
|
||||
class ContactController_PRGredirect_parent extends ContactController {}
|
||||
class ManufacturerListController_PRGredirect_parent extends ManufacturerListController {}
|
||||
class SearchController_PRGredirect_parent extends SearchController {}
|
||||
class VendorListController_PRGredirect_parent extends VendorListController {}
|
||||
}
|
||||
|
||||
namespace D3\PRGredirects\Modules\Core {
|
||||
@ -30,4 +34,3 @@ namespace D3\PRGredirects\Modules\Core {
|
||||
|
||||
class Utils_PRGredirect_parent extends Utils {}
|
||||
}
|
||||
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* https://www.d3data.de
|
||||
*
|
||||
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
||||
* @link https://www.oxidmodule.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\PRGredirects\Modules\Application\Controllers;
|
||||
|
||||
use D3\PRGredirects\Application\Core\redirectControllerTrait;
|
||||
|
||||
class ManufacturerListController_PRGredirect extends ManufacturerListController_PRGredirect_parent
|
||||
{
|
||||
use redirectControllerTrait;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function render(): string
|
||||
{
|
||||
$template = parent::render();
|
||||
|
||||
$this->d3DoPRGRedirect();
|
||||
|
||||
return $template;
|
||||
}
|
||||
}
|
35
Modules/Application/Controllers/VendorListController_PRGredirect.php
Normale Datei
35
Modules/Application/Controllers/VendorListController_PRGredirect.php
Normale Datei
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* https://www.d3data.de
|
||||
*
|
||||
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
||||
* @link https://www.oxidmodule.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\PRGredirects\Modules\Application\Controllers;
|
||||
|
||||
use D3\PRGredirects\Application\Core\redirectControllerTrait;
|
||||
|
||||
class VendorListController_PRGredirect extends VendorListController_PRGredirect_parent
|
||||
{
|
||||
use redirectControllerTrait;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function render(): string
|
||||
{
|
||||
$template = parent::render();
|
||||
|
||||
$this->d3DoPRGRedirect();
|
||||
|
||||
return $template;
|
||||
}
|
||||
}
|
18
metadata.php
18
metadata.php
@ -15,11 +15,15 @@ declare(strict_types=1);
|
||||
|
||||
use D3\PRGredirects\Modules\Application\Controllers\ArticleListController_PRGredirect;
|
||||
use D3\PRGredirects\Modules\Application\Controllers\ContactController_PRGredirect;
|
||||
use D3\PRGredirects\Modules\Application\Controllers\ManufacturerListController_PRGredirect;
|
||||
use D3\PRGredirects\Modules\Application\Controllers\SearchController_PRGredirect;
|
||||
use D3\PRGredirects\Modules\Application\Controllers\VendorListController_PRGredirect;
|
||||
use D3\PRGredirects\Modules\Core\Utils_PRGredirect;
|
||||
use OxidEsales\Eshop\Application\Controller\ArticleListController;
|
||||
use OxidEsales\Eshop\Application\Controller\ContactController;
|
||||
use OxidEsales\Eshop\Application\Controller\ManufacturerListController;
|
||||
use OxidEsales\Eshop\Application\Controller\SearchController;
|
||||
use OxidEsales\Eshop\Application\Controller\VendorListController;
|
||||
use OxidEsales\Eshop\Core\Utils;
|
||||
|
||||
$sMetadataVersion = '2.1';
|
||||
@ -45,7 +49,9 @@ $aModule = [
|
||||
Utils::class => Utils_PRGredirect::class,
|
||||
ArticleListController::class => ArticleListController_PRGredirect::class,
|
||||
ContactController::class => ContactController_PRGredirect::class,
|
||||
ManufacturerListController::class => ManufacturerListController_PRGredirect::class,
|
||||
SearchController::class => SearchController_PRGredirect::class,
|
||||
VendorListController::class => VendorListController_PRGredirect::class
|
||||
],
|
||||
'settings' => [
|
||||
[
|
||||
@ -60,6 +66,18 @@ $aModule = [
|
||||
'type' => 'bool',
|
||||
'value' => false,
|
||||
],
|
||||
[
|
||||
'group' => $sModuleId.'_general',
|
||||
'name' => $sModuleId.'_manufacturerlist',
|
||||
'type' => 'bool',
|
||||
'value' => false,
|
||||
],
|
||||
[
|
||||
'group' => $sModuleId.'_general',
|
||||
'name' => $sModuleId.'_vendorlist',
|
||||
'type' => 'bool',
|
||||
'value' => false,
|
||||
],
|
||||
[
|
||||
'group' => $sModuleId.'_general',
|
||||
'name' => $sModuleId.'_contact',
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren