Jump to content

Magento Layout Questions.


lostnucleus

Recommended Posts

Here is what I think about Magento (plz correct me if I am wrong )

 

1)Each module has its own layout.xml stored in /interface/theme/layouts/ folder.

2)Magento loads all these layouts for current theme and creates a big xml file.

 

Now what I am confused at .

 

a)If magento loads /default/default/ (interface & theme) then why all the templates & layouts are inside base/default/ ??

 

b)what if I create my module name “page” inside my namespace “Jason” i.e Jason_Page , now what will happen to blocks in layout files which are named

<block type="page/html" ....>

 

c)Since all the layouts are loaded and merged into one big xml file , then what happen to all those reference blocks which have same name attribute and are inside “Default” handle tag ?

e.g <default><reference name="right"><block name="foo" ..../></reference></default>

<default><reference name="right"><block name="boo" ..../></reference></default>

 

d)what is Local.xml layout for and its use ??

e)wats the relation ship between a module name foo , and its layout name foo.xml ?

What will happen to layout.xml if two modules with same name exist in diff namespace ?

 

Thanks in advance .

Link to comment
https://forums.phpfreaks.com/topic/202482-magento-layout-questions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.