Hi! I am a little bit new to the oxid-module development and i got some questions for my module.
At the moment, I am working on a new module, in which i want to hide the minibasket, when i am in the basket.
I thought, it could be useful to write this in the metadata:
These are my Pages (basket, order, user, thankyou, payment), where I want to hide the Minibasket.
Now i realised, that my intention doesn't work, because the 'blocks'-array works for all pages. And this is my first question: When i only have 'blocks' => array() in my metadata.php, why does this overwrites my template?
Shouldn't it do nothing, when i let it empty?
At the moment, I am working on a new module, in which i want to hide the minibasket, when i am in the basket.
I thought, it could be useful to write this in the metadata:
Code:
'blocks'=> array("template" => 'page/checkout/basket.tpl', "block" => 'checkout_basket_main', "file" => "out/page/checkout/hi_hiddenbasket_removebasket.tpl"),
array("template" => 'page/checkout/order.tpl', "block" => 'checkout_basket_main', "file" => "out/page/checkout/hi_hiddenbasket_removebasket.tpl"),
array("template" => 'page/checkout/payment.tpl', "block" => 'checkout_basket_main', "file" => "out/page/checkout/hi_hiddenbasket_removebasket.tpl"),
array("template" => 'page/checkout/thankyou.tpl', "block" => 'checkout_basket_main', "file" => "out/page/checkout/hi_hiddenbasket_removebasket.tpl"),
array("template" => 'page/checkout/user.tpl', "block" => 'checkout_basket_main', "file" => "out/page/checkout/hi_hiddenbasket_removebasket.tpl"),
Now i realised, that my intention doesn't work, because the 'blocks'-array works for all pages. And this is my first question: When i only have 'blocks' => array() in my metadata.php, why does this overwrites my template?
Shouldn't it do nothing, when i let it empty?