Thought I had this down, but something changed and I’m a bit stuck now. Let me recap what I _think_ I know along with what I’m trying to do.
First off - page.xml controls all the display areas on every page in the site -everywhere - meaning that you need to either define “labels” for the areas or the labels along with the actual code snippet to display (the phtml file).
Then - I can define different templates to use to display these areas - for instance - I create a main page template and defined 4 different zones in it.
As my user moves through the site - say to the category list - I can reset the main page template to another template, say main page template 2.
The different modules are inserted via teh different xml layout files and you can also override the main template in these files.
Okay - so let’s say I’m good so far.
What I’ve done is create a module that displays on the main website page (template 1). This module displays categories of product (all of them).
When the user clicks a product category - they should go to the main category page, which lists subcategories and also uses a new template (Template 2).
What happens now, is the user clicks on the category, I get the category url in the browswer window, but the template doesn’t change to template 2.
In the category xml file - if I override the default handle with template 2 - the main page gets changed to template 2 when template 1 should be displayed.
If I put the template override in the catalog.xml=>catalog_category_default handle - nothing happens .. .
Which leads me to this question? How does Magento know where it’s at in the hierarchy and thus which handle to use? And what exactly is the difference between the default handle and the other handles?
Okay - maybe that’s not so easy, but I’m _this_ close to getting the elegance of the system.