I am having some issues figuring out how to handle the page layouts, specifically for how to ADD another template that can be used for the home page. My home page structure does not fit any of the already established template files. I can’t find a configuration setting for where to set which template to use for the home page either.
i do have the same problem too.. i want to set the homepage template to 3columns.phmtl but until now i wasn’t able to do it..
as far as i know.. the homepage is a CMS page so i went on to cms.xml layout and change 1column.phtml to 3columns.phtml but nothing happened..
anyone who could help me? All i need is to know where to set the homepage template.. thanks…
To change the layout that the homepage uses you need to go to CMS > Manage pages. Then click on homepage, then custom design and choose your layout.
To add a new template, you need to first create the template and save it into app/design/frontend/[your interface]/[your theme]/template/page
Then you need too add this new template to app/code/core/Mage/Cms/etc/config.xml and look at line 170 (approx).
Great, that sounds exactly like what I need. However, my only concern is upgrading - if I change that config.xml file, will I have to redo that change every time Magento is updated? I really want to avoid having to reapply changes every upgrade in the future so I was avoiding changing core files.
For now - yes you will have to rewrite the change everytime you upgrade… you could write your own xml (in local) to do the same job that would avoid the issue of redoing it everytime
JUst wanted to say thanks. it appears in the dropdown menu, but when i’m looking at it in the frontend, it says 404. is there anything i might have overlooked?
Ive been looking for someone who can answer this..>>> anytime I use magento connect to, let say, install the new blue template the magento provided. One the template is installed, I go to system, design and put “blue” in the two configure fields. Once this is done. my navigation in the admin stops working. I cant click on anything. this has happened with every version. It may because by magento connect and have nothing to do with the template. Im not sure.
When i hack app/code/core/Mage/Cms/etc/config.xml at line 170 (approx)… the new phtml files do show up in the pulldown under cms/manage pages/custom design. =)
But when i want to use the custom config.xml files in:
app/code/local/Mage/Templates/etc/config.xml
and
app/etc/modules/Mage_Templates.xml
...nothing happens |(
I also noticed that the directories /Mage/Templates/etc/ did not exist so i added them myself.
I like to have working the right way so i dont have to reapply the hack each time i upgrage magento…
I cant see what i am doing wrong here, could it be my custom xml files???