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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.