I'm trying to override "content" block of page.xml. It works with default design package. I can output products in content block:

enter image description here

but with rwd package it not overriding "content":

enter image description here no matter if I put my 'trening' theme in rwd or default directory:

enter image description here

<?xml version="1.0"?>


                <use>standard</use> <!--standardowy router, (nie ważne, trzeba to wpisać)-->
                    <frontName>trening</frontName> <!--pierwszy człon adresu url który ma prowadzić do tego modułu  localhost/trening/.../..-->
            <catalog> //nadpisanie kontrolera catalog/product
                        <demo before="Mage_Catalog">Trening_NewModule</demo>

How to do it to make it work in rwd?


You have to add rwd in Current Package Name in admin Desing tab instead of default.

You have to add page.xml inside app/design/frontend/rwd/default/layout/page.xml.

You have to remove your custom trening directory frontend/rwd/default/trening and move trening.xml and myproducts.phtml to respectable rwd/layout/ and rwd/templatedirectories then leave blank inputs in theme admin Desing tab or (better solution) move your trening directory level up to rwd/ directory not rwd/default/ and stay with 'trening' name in admin Design Themes Default input.

enter image description here

Clear cache and check.

  • I added rwd in Current Package Name , check my 2nd picture. Also app/design/frontend/rwd/default/layout/page.xml is there by default. Jan 19 '17 at 5:06
  • have you remove var folder and clear cache. Jan 19 '17 at 5:07
  • Im working in dev mode, anyway I cleared cache and removed var dir and still same. Jan 19 '17 at 5:10
  • have you check in backend, System -> design tab with any defau;t theme is not defined? Jan 19 '17 at 5:13
  • 1
    Got it you have keep treingin folder inside default folder it is wrong. you have to keep trening.xml file inside rwd/default/layout/trening.xml and rwd/default/template/trening/mytemplate.phtml file, Jan 19 '17 at 5:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.