{"id":437,"date":"2015-04-17T12:17:13","date_gmt":"2015-04-17T11:17:13","guid":{"rendered":"http:\/\/dknzdesign.com\/?p=437"},"modified":"2015-04-17T12:21:35","modified_gmt":"2015-04-17T11:21:35","slug":"magento-templates-and-layout-files-location","status":"publish","type":"post","link":"https:\/\/dknzdesign.com\/sl\/blog\/magento\/magento-templates-and-layout-files-location\/","title":{"rendered":"Magento predloge in lokacija datotek postavitve"},"content":{"rendered":"<p>It\u2019s a bit late already, but I wanted to make sure I put at least one thing today so we\u2019re going to go over the next question in the Magento Certification Study Guide. Here\u2019s the question from the guide \u2014 lets get to it!<\/p>\n<blockquote><p>Describe Magento templates and layout files location<\/p><\/blockquote>\n<p>A theme consists of the following elements:<\/p>\n<p><strong>Layout <\/strong>:<\/p>\n<p><a href=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/layout-image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-438\" src=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/layout-image.png\" alt=\"layout-image\" width=\"355\" height=\"278\" srcset=\"https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/layout-image.png 355w, https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/layout-image-300x235.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>&#8211; app &gt; design &gt; frontend &gt; package_name(Base) &gt; theme_name(Default) &gt; layout<\/p>\n<p>&#8211; This folder includes XML files that define the layout of the theme. Layout files are basically a key part of view for MVC. This detects which block to load and which template files to be loaded in which controller action.<\/p>\n<p>Because of Magento modularity, all XML files of the default theme are stored in separate folders with the name of the module to which they belong to. A non-default theme, contrariwise, should have a single layout file, named local.xml, where all layout updates are placed.<\/p>\n<p><strong>Template <\/strong>:<\/p>\n<p><a href=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-templates.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-439\" src=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-templates.png\" alt=\"magento-templates\" width=\"355\" height=\"278\" srcset=\"https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-templates.png 355w, https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-templates-300x235.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>&#8211; app &gt; design &gt; frontend &gt; package_name(Base) &gt; theme_name(Default) &gt; template<\/p>\n<p>&#8211; This folder contains of .phtml files that have HTML and PHP code for each Magento blocks which will be displayed in the frontend.<\/p>\n<p><strong>Locale<\/strong> :<\/p>\n<p><a href=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-locale.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-440\" src=\"http:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-locale.png\" alt=\"magento-locale\" width=\"355\" height=\"276\" srcset=\"https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-locale.png 355w, https:\/\/dknzdesign.com\/wp-content\/uploads\/2015\/04\/magento-locale-300x233.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>&#8211; app &gt; design &gt; frontend &gt; package_name(Base) &gt; theme_name(Default) &gt; locale<\/p>\n<p>&#8211; This folder contains .of CSV files organized on a per language basis that provide translations in format of languagecode_COUNTRTYCODE (en_US or en_UK)\/translate.csv.<\/p>\n<p>That\u2019s about it for the Study Guide\u2019s question. If you still want to know more, definitely <a title=\"Magento Users Guide | Magento\" href=\"http:\/\/www.magentocommerce.com\/resources\/magento-user-guide\" target=\"_blank\">check out the Designer\u2019s Guide to Magento over on the Magento site<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>It\u2019s a bit late already, but I wanted to make sure I put at least one thing today so we\u2019re going to go over the next question in the Magento Certification Study Guide. Here\u2019s the question from the guide \u2014 lets get to it! Describe Magento templates and layout files location A theme consists of&#8230;<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[80,43,81,79],"_links":{"self":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/437"}],"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=437"}],"version-history":[{"count":4,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/posts\/437\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dknzdesign.com\/sl\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}