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 7776971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:01:00+00:00 2026-06-01T18:01:00+00:00

I have a Observer class where i was always used to set new magento

  • 0

I have a Observer class where i was always used to set new magento template.

<?php

class Company_Customadmintheme_Controller_Observer
{ 
    public function overrideAdminTheme()
    {
        //if(Mage::getStoreConfig('design/admin/enable_admin_custom_theme') == 1)
            Mage::getDesign()->setArea('adminhtml')->setTheme('custom');
    }
}

and in my config xml

<?xml version="1.0"?>
<config>
  <global>
    <models>
        <comapnycustomadminthemecontroller>
             <class>Comapny_Customadmintheme_Controller</class>
        </comapnycustomadminthemecontroller>
    </models>
    <events>
      <adminhtml_controller_action_predispatch_start>
        <observers>
          <comapny_adminthemeoverride_observer>
            <type>singleton</type>
            <class>Comapny_Customadmintheme_Controller_Observer</class>
            <method>overrideAdminTheme</method>
          </comapny_adminthemeoverride_observer>
        </observers>
      </adminhtml_controller_action_predispatch_start>      
    </events>
  </global>
</config>

I have this. Its working fine for Main admin user which was created while installation.

Now we have many admin users who will be able to login and add only products.But for some reason it still showing the magento default template/skin and not picking the custom template(still its working in main admin user who can access all modules/config).

So to make the Catalog users also to see the same template, should i need to specify anything in the xml.

In the observer Class when i tried to see the current template/skin still i see the following array for both users.

object(Mage_Core_Model_Design_Package)#92 (8) {
  ["_store:protected"] => NULL
  ["_area:protected"] => string(9) "adminhtml"
  ["_name:protected"] => string(7) "default"
  ["_theme:protected"] => array(4) {
    ["layout"] => string(6) "custom"
    ["template"] => string(6) "custom"
    ["skin"] => string(6) "custom"
    ["locale"] => string(6) "custom"
  }
  ["_rootDir:protected"] => NULL
  ["_callbackFileDir:protected"] => NULL
  ["_config:protected"] => NULL
  ["_shouldFallback:protected"] => bool(true)
}

Note:
My skin/ folder have modifed css for new mage admin and template folder only have page/head.phtml to load extra css.

Please can someone help me in why am not able to see same template for admin/catalog users.

  • 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-01T18:01:01+00:00Added an answer on June 1, 2026 at 6:01 pm

    This is not the right way to use a custom theme for your Backoffice.

    Magento already implements this. You just have to put this in any of your config.xml (the one in app/etc or in any of your custom modules.

    <?xml version="1.0" encoding="UTF-8"?>
    <config>
       <stores>
          <admin>
             <design>
                <theme>
                   <default>custom</default>
                </theme>
             </design>
          </admin>
       </stores>
    </config> 
    

    With this, Magento will look for your design templates in app/design/adminhtml/default/custom with a failover on app/design/adminhtml/default/default and your design resources in skin/adminhtml/default/custom with a failover on skin/adminhtml/default/default

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

Sidebar

Related Questions

I have something like public class Controller { [Observer(fetchEmployeesEvent)] public function fetchEmployees() : void
I have the following Observer: public class Fisc implements Observer { double value1; double
I have made a generic Observer interface and an Observable class, but can't compile
I have only one class with many instances. Every instance is observer of couple
I have an observer which looks like this: class CommentObserver < ActiveRecord::Observer include ActionView::Helpers::UrlHelper
I have a class with 2 NSNotifications implemented //Set up notifications [[NSNotificationCenter defaultCenter] addObserver:self
I have observer.h , client.h and field.h files. In observer.h there is Subject class
So I have an observer which looks like this: class RecipeObserver < Mongoid::Observer def
I have used Observer Pattern for my application. I have a subject which has
I have observer for Magento event checkout_cart_product_add_after. Now I need to check if for

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.