Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show template path in admin panel magento

Tags:

magento

I am working with magento admin panel, I want to on template path as like we do for front end, I tried it by installed an extention, but its not working.Please let me know how can I do that ?

like image 923
Ashwani Panwar Avatar asked Feb 19 '26 14:02

Ashwani Panwar


2 Answers

Goto

app > code > core > Mage > core > etc > system.xml

Line 512

you can see this

<template_hints translate="label">
      <label>Template Path Hints</label>
      <frontend_type>select</frontend_type>
      <source_model>adminhtml/system_config_source_yesno</source_model>
      <sort_order>20</sort_order>
      <show_in_default>0</show_in_default>
      <show_in_website>1</show_in_website>
      <show_in_store>1</show_in_store>
</template_hints>

Change the <show_in_default> to 1 and save.

Then goto admin panel system > configuration > developer > Debug Enable path hint.

Cheers

like image 90
MeenakshiSundaram R Avatar answered Feb 26 '26 09:02

MeenakshiSundaram R


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

Run the following query:

To Enable:

UPDATE core_config_data set value = 1 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'

To Disable:

UPDATE core_config_data set value = 0 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'

Delete the record when you are done with or set value 0 as described above . Do not forget to remove the cache

like image 36
Dushyant Joshi Avatar answered Feb 26 '26 10:02

Dushyant Joshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!