Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable template path hint in admin pages - Magento

Tags:

I want to enable template path hints in admin panel. I know how to do it for the front end, but for back end?? I actually want to edit the admin panel .

Thanks in advance..

like image 786
Damodaran Avatar asked Dec 07 '10 04:12

Damodaran


People also ask

How do I enable template hints?

Step 2: Enable template path hintsOn the Admin sidebar, go to Stores > Settings > Configuration. In the left panel, expand Advanced and choose Developer. To activate template path hints for the store, set Enabled Template Path Hints for Storefront to Yes .

Which option you should enable in the configuration menu to get the name and path?

Go to System->Configuration. The Template Path and Block name will only appear for current website.

Where does the root template in Magento is reside?

Root template <Magento_Theme_module_dir>/view/base/templates/root. phtml is the root template for all storefront pages in the Magento application. This file can be overridden in a theme just like any other template file.


2 Answers

You can do it by changing the database directly. If you have something like phpMyAdmin that is a good way to gain access. Enter this SQL.

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)        VALUES ('websites', '0', 'dev/debug/template_hints', '1'); 

When you are done with path hints just delete the matching record from core_config_data Or update the value field to 0 instead of deleting the whole record, it will probably be the last one since you've just added it.

like image 194
clockworkgeek Avatar answered Oct 30 '22 11:10

clockworkgeek


You can enable template and block path hints in every store (including the admin store) by setting them in the Magento configuration. To do this, simply edit your module's configuration file config.xml (which gets injected into Magento's global configuration).

To enable template and block path hints in the admin area add this to your config.xml file

<config>      ...      <stores>         <admin>             <dev>                 <debug>                     <template_hints>1</template_hints>                     <template_hints_blocks>1</template_hints_blocks>                 </debug>             </dev>         </admin>     </stores>  </config> 

To disable path hints simply change to 0, or delete the node.

like image 28
f0xdx Avatar answered Oct 30 '22 11:10

f0xdx