As an excercise, I am trying to integrate the following free template with my Magento installation running on a local XAMPP server: http://www.freewebsitetemplates.com/preview/hardwarestore/
So far, I have created a new directory called hardwarestore in app/design/frontend and another in skin/frontend/
I then copied the default theme directories from app and skin into my hardwarestore directories, and created an additional hardwarestore directory in each as another theme.
I put the images and stylesheet from the template in the appropriate skin/frontend/hardwarestore/hardwarestore/ directories.
I created a skeleton template in app/design/frontend/hardwarestore/hardwarestore/template/page/2columns-left.phtml
I copied page.xml from the default theme into app/design/frontend/hardwarestore/hardwarestore/layout/ and it’s here that I’m geting confused!
I’ve figured out to change the line <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml"> to use my 2columns-left.phtml template instead.
I’m guessing I can get rid of the stuff within the <block type="page/html_head" name="head" as="head"> and just have <action method="addCss"><stylesheet>css/style.css</stylesheet></action> as I only need the one css file that came with the template. Is this correct?
And I’m confused about where to go from here. Is there a list somewhere of the available block type attributes and what they mean/what they do? Why do some (eg. store_language) have a template attribute and others (eg. topLinks) don’t? Why do some blocks close themselves (eg. breadcrumbs, content, right) and others have stuff within them (eg. header, footer)? What does the <print> bit do, and is it compulsory?
Sorry if these are stupid questions but the design guide doesn’t go into much detail about how the XML layout files work. If someone could post a line-by-line explanation of at least the page.xml file it would really help me to understand.
Having used osCommerce in the past I can see that the Magento way of doing things is much better and clearer, and I’m sure I will find it very straightforward and easy once I’ve got my head around the initial learning curve… but right now I could use some help!