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

  • SEARCH
  • Home
  • 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 8297803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:32:42+00:00 2026-06-08T15:32:42+00:00

I have a generic template file that I would like to be used for

  • 0

I have a generic template file that I would like to be used for every page. I have witnessed a co-worker add a single parameter to either his local.xml or page.xml layout file that forced every page to use the specific layout file regardless of database values. He has since left the company so I cannot ask him how he did it. I have tried the answer as suggested in How to set a default layout in Magento 1.5 using local.xml? but that did not work.

How do I force Magento (1.7) to load only the template/layout that I want?

  • 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-06-08T15:32:43+00:00Added an answer on June 8, 2026 at 3:32 pm

    It is pity, but there is not just single option that you can use to be sure that all page layouts will use your templates, but you can apply your layout handle that will set your custom template in each of the page layout handles.

    So in your local.xml there should be something like the following:

    <your_custom_handle>
         <action method="setTemplate" block="root"><template>your/template.phtml</template></action>
    </your_custom_handle>
    
    <page_empty>
         <update handle="your_custom_handle" />
    </page_empty>
    
    <page_one_column>
         <update handle="your_custom_handle" />
    </page_one_column>
    
    <page_two_columns_left>
         <update handle="your_custom_handle" />
    </page_two_columns_left>
    
    <page_two_columns_right>
         <update handle="your_custom_handle" />
    </page_two_columns_right>
    
    <page_three_columns>
         <update handle="your_custom_handle" />
    </page_three_columns>
    

    The first part of the layout update, creates your own handle, that sets template to root block. All the others are including your custom handle into different page layouts.

    Enjoy!

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

Sidebar

Related Questions

I have generic type that looks like: public class GenericClass<T, U> where T :
I have written a generic CSV file reader that I'm trying to use to
I have a method in my controller that handles generic page requests, meant for
I have a generic linked-list that holds data of type void* I am trying
I have a Generic Base Class that I want to allow one of two
I have seen generic repository pattern here . I am trying to add generic
I have a generic Print method that iterates over a list and simply prints
I have found the place near the very top in a T4MVC template file
I have a system that filters template files through erb. Using convention over configuration,
In my en.yml translation file, I have: activerecord: errors: template: header: one: 1 error

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.