Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Hiding a Menu on certain Pages

$
0
0
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:

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"),

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?

Viewing all articles
Browse latest Browse all 6951

Trending Articles