{"id":454,"date":"2015-04-19T07:50:43","date_gmt":"2015-04-19T06:50:43","guid":{"rendered":"http:\/\/dknzdesign.com\/?p=454"},"modified":"2015-04-19T07:51:43","modified_gmt":"2015-04-19T06:51:43","slug":"how-to-enable-template-path-hints-in-magento-admin","status":"publish","type":"post","link":"https:\/\/dknzdesign.com\/sl\/blog\/magento\/how-to-enable-template-path-hints-in-magento-admin\/","title":{"rendered":"Kako omogo\u010diti namige o poti predloge v skrbni\u0161tvu magenta"},"content":{"rendered":"<p>As you may know, Magento provides template path hints function to help you debug your template. However, this function is only available in front-end. Sometimes, you need to debug the template in back-end. How should you do? I have a tip to enable template path hints for magento admin.<\/p>\n<p>In the configuration file (config.xml) of an active module, you can insert the following code:<\/p>\n<pre>&lt;config&gt;\r\n...\r\n&lt;default&gt;\r\n&lt;dev&gt;\r\n&lt;debug&gt;\r\n&lt;template_hints&gt;1&lt;\/template_hints&gt;\r\n&lt;template_hints_blocks&gt;1&lt;\/template_hints_blocks&gt;\r\n&lt;\/debug&gt;\r\n&lt;\/dev&gt;\r\n&lt;\/default&gt;\r\n&lt;\/config&gt;<\/pre>\n<p>This code will enable template path hints for all pages in your Magento sites (including admin and front-end). In case you want to enable it in admin only, you can use the code below:<\/p>\n<pre>&lt;config&gt;\r\n...\r\n&lt;websites&gt;\r\n&lt;admin&gt;\r\n&lt;dev&gt;\r\n&lt;debug&gt;\r\n&lt;template_hints&gt;1&lt;\/template_hints&gt;\r\n&lt;template_hints_blocks&gt;1&lt;\/template_hints_blocks&gt;\r\n&lt;\/debug&gt;\r\n&lt;\/dev&gt;\r\n&lt;\/admin&gt;\r\n&lt;\/websites&gt;\r\n&lt;\/config&gt;\r\n<\/pre>\n<p>Hope this post help you to debug the code in magento admin!<\/p>","protected":false},"excerpt":{"rendered":"<p>Kot morda veste, Magento ponuja funkcijo namigov poti predloge, ki vam pomaga odpraviti napake v predlogi. Vendar je ta funkcija na voljo samo v sprednjem delu. V\u010dasih morate odpraviti napake v predlogi v ozadju. Kako naj naredi\u0161? Imam nasvet, kako omogo\u010diti namige o poti predloge za skrbnika magenta. V konfiguracijski datoteki (config.xml) \u2026<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[84,43,86,85],"_links":{"self":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/454"}],"collection":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":2,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/454\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}