I don't want to override .php
files I want to edit only .phtml
files of Page Module
how can I create layout file and assign?
thanks.
layoutmagento-1.8
I don't want to override .php
files I want to edit only .phtml
files of Page Module
how can I create layout file and assign?
thanks.
Best Answer
to edit the layout use the
local.xml
file in your template. In case it's not there yet you can go ahead and create it.If you want to have a custom layout file like, for example,
magentonav.xml
you will be required to have your own extension that includes it in the layout.In case you want to create a new block in your layout with a custom
.phtml
file you can do the following for exampleNotice the type
core/template
. This will allow you to add a.phtml
file to your layout without requiring you to write your own custom block class