Guys and girls,
I have been exploring the guts of Magento and its templating for a couple of days now and feel like I just need one of those Eureka moments that will make it all slot into place.
I think I understand the whole concept of having the skeleton templates (say for one, two and three column designs) and then relying on the XML to determine which components go into the various blocks in that skeleton. (Right so far?) Where I am getting confused and frustrated is that I am not sure what pages on the front end relate to the corresponding parts of the XML. Let me illustrate:
With the “template path hints” on I can see which XML files are being called. Say for most pages I rely on some information being provided by the checkout.xml and the catalog.xml - I can see this from default\template\catalog/navigation/top.phtml and default\template\checkout/cart/sidebar.phtml for example. However if I navigate to a specific page, such as http://www.mystore.com/checkout/cart I can see from the hints that the checkout.xml is being called again.
However within checkout.xml there are:
so from the URL of the page I am on how can I tell which part of any of XML layouts I am using? Or is it guess work?
Thanks in advance.