Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 810983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:58:17+00:00 2026-05-15T00:58:17+00:00

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

  • 0

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

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

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 .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:58:17+00:00Added an answer on May 15, 2026 at 12:58 am

    1) Each module can choose to define layout files that go into the /interface/theme/layouts/ folder. You can accomplish this by specifying the layouts in your module’s config.xml file like this:

    <frontend>
        <layout>
            <updates>
                <jason_page>
                    <file>jasonpage.xml</file>
                </jason_page>
            </updates>
        </layout>
    </frontend>
    

    2) Yes.

    a) Magento’s interface is built using descendency. Templates and layouts are first taken from your chosen interface and theme, and if not found there, will be taken from base. This allows you to define only those things that change from the base when creating a new them.

    b) If you create a new module with blocks, you will specify the classpath for those blocks in your config.xml:

    <global>
        <blocks>
            <jason_page>
                <class>Jason_Page_Block</class>
            </jason_page>
        </blocks>
    </global>
    

    This will define the tag jason_page to refer to your blocks. Then, when defining a layout, you will reference your blocks as:

    <block type='jason_page/blockname' as='blockname' name='blockname' />
    

    And your blocks will be named as: Jason_Page_Block_Blockname in /app/code/local/Jason/Page/Block/Blockname.php

    c) Each time you use a <reference> tag and add some child blocks, they are added to the large tree as you say. Make sure to use different name/as tags for the blocks, and you’ll be fine. If the name is identical, you will probably cause errors.

    d) local.xml (in app/etc) defines some configuration parameters for your site, such as database connection information and encryption keys. it doesn’t have to do with layouts.

    d part 2) Since you define your layout files, including their names, it’s up to you to not cause collisions. Choosing a module name more unique than Page would go far here. If you do have a module with the same name as a default module (e.g. Page), prefix the file with your namespace when declaring it in your config.xml file.

    Hope that helps!

    Thanks,
    Joe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm curious to know, what people here think about using org.apache.commons.lang.builder EqualsBuilder / HashCodeBuilder
Here is an interesting optimization problem that I think about for some days now:
Okay, been thrashing around with this for longer than I care to think about!
it's a v 1.4.1.1 Magento, upgraded from a v 1.3.2.4 When I try to
I think I do understand the basic IDEA of move semantics, but now when
here's the problem: I have a custom hardware device and I have to grab
Hey guys, It's 5 am here, I was doing some code... when this came
Question title might be meaningless, but I tried. :) Here's my situation: I have
Do I need to protect Thread objects from the Garbage Collector? What about the
this is surely a basic question for most of you but it still giving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.