{"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":"http:\/\/dknzdesign.com\/de\/blog\/magento\/how-to-enable-template-path-hints-in-magento-admin\/","title":{"rendered":"So aktivieren Sie Vorlagenpfadhinweise in Magento Admin"},"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>Wie Sie vielleicht wissen, bietet Magento eine Hinweisfunktion f\u00fcr Vorlagenpfade, um Ihnen beim Debuggen Ihrer Vorlage zu helfen. Diese Funktion ist jedoch nur im Frontend verf\u00fcgbar. Manchmal m\u00fcssen Sie die Vorlage im Back-End debuggen. Wie solltest du vorgehen? Ich habe einen Tipp, um Vorlagenpfadhinweise f\u00fcr Magento Admin zu aktivieren. In der Konfigurationsdatei (config.xml) von\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":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/posts\/454"}],"collection":[{"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":2,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":456,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/posts\/454\/revisions\/456"}],"wp:attachment":[{"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dknzdesign.com\/de\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}