Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento Admin custom theme not working
    primarykey
    data
    text
    <p>I have a Observer class where i was always used to set new magento template.</p> <pre><code>&lt;?php class Company_Customadmintheme_Controller_Observer { public function overrideAdminTheme() { //if(Mage::getStoreConfig('design/admin/enable_admin_custom_theme') == 1) Mage::getDesign()-&gt;setArea('adminhtml')-&gt;setTheme('custom'); } } </code></pre> <p>and in my config xml </p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;global&gt; &lt;models&gt; &lt;comapnycustomadminthemecontroller&gt; &lt;class&gt;Comapny_Customadmintheme_Controller&lt;/class&gt; &lt;/comapnycustomadminthemecontroller&gt; &lt;/models&gt; &lt;events&gt; &lt;adminhtml_controller_action_predispatch_start&gt; &lt;observers&gt; &lt;comapny_adminthemeoverride_observer&gt; &lt;type&gt;singleton&lt;/type&gt; &lt;class&gt;Comapny_Customadmintheme_Controller_Observer&lt;/class&gt; &lt;method&gt;overrideAdminTheme&lt;/method&gt; &lt;/comapny_adminthemeoverride_observer&gt; &lt;/observers&gt; &lt;/adminhtml_controller_action_predispatch_start&gt; &lt;/events&gt; &lt;/global&gt; &lt;/config&gt; </code></pre> <p>I have this. Its working fine for Main admin user which was created while installation.</p> <p>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).</p> <p>So to make the Catalog users also to see the same template, should i need to specify anything in the xml.</p> <p>In the observer Class when i tried to see the current template/skin still i see the following array for both users.</p> <pre><code>object(Mage_Core_Model_Design_Package)#92 (8) { ["_store:protected"] =&gt; NULL ["_area:protected"] =&gt; string(9) "adminhtml" ["_name:protected"] =&gt; string(7) "default" ["_theme:protected"] =&gt; array(4) { ["layout"] =&gt; string(6) "custom" ["template"] =&gt; string(6) "custom" ["skin"] =&gt; string(6) "custom" ["locale"] =&gt; string(6) "custom" } ["_rootDir:protected"] =&gt; NULL ["_callbackFileDir:protected"] =&gt; NULL ["_config:protected"] =&gt; NULL ["_shouldFallback:protected"] =&gt; bool(true) } </code></pre> <p>Note: My skin/ folder have modifed css for new mage admin and template folder only have page/head.phtml to load extra css. </p> <p>Please can someone help me in why am not able to see same template for admin/catalog users.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload