I have a template called test.phtml in \magento\app\design\frontend\rwd\newtheme\template\test\test.phtml
In page.xml layout file I am not getting how to add my template to appear in all pages except product page.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI have a template called test.phtml in \magento\app\design\frontend\rwd\newtheme\template\test\test.phtml
In page.xml layout file I am not getting how to add my template to appear in all pages except product page.
You have to add two layout update in your layout.xml
file
First to add your template in all pages
<default>
<reference name="content"> // Changes you reference accordingly
<block type="core/template" name="customtestblock" template="test/test.phtml"/>
</reference>
</default>
Second to remove block from category page
<catalog_category_default>
<remove name="customtestblock"/>
</catalog_category_default>
<catalog_category_layered>
<remove name="customtestblock"/>
</catalog_category_layered>
local.xml
file
– Piyush
Oct 13 '17 at 10:24