{"id":739,"date":"2021-07-23T14:40:10","date_gmt":"2021-07-23T05:40:10","guid":{"rendered":"http:\/\/192.168.20.1\/?p=739"},"modified":"2021-07-26T07:25:00","modified_gmt":"2021-07-25T22:25:00","slug":"joomla-template-development","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=739","title":{"rendered":"Joomla Template Development"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Joomla \u306e template \u958b\u767a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.joomla.org\/Tutorials:Template_Development\" target=\"_blank\" rel=\"noopener\">Template Development<\/a> (Joomla.org)<\/li>\n<\/ul>\n<h2>Environment<\/h2>\n<p>Joomla Version : 3.x<\/p>\n<h2>Joomla Architechture<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/07\/Joomla-Architechture.png\" alt=\"\" width=\"521\" height=\"461\" \/><\/p>\n<h2>Directory structure<\/h2>\n<p>template directory \u306e\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<pre>* mynewtemplate\/\r\n** css\/\r\n*** template.css\r\n** images\/\r\n** index.php\r\n** templateDetails.xml\r\n<\/pre>\n<h2>templateDetails.xml<\/h2>\n<pre>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;extension version=\"2.5\" type=\"template\"&gt;\r\n\t&lt;name&gt;<span style=\"color: #ff0000;\">RLabTemplat<\/span>e&lt;\/name&gt;\r\n\t&lt;creationDate&gt;<span style=\"color: #ff0000;\">2021-07-01<\/span>&lt;\/creationDate&gt;\r\n\t&lt;author&gt;<span style=\"color: #ff0000;\">RLab<\/span>&lt;\/author&gt;\r\n\t&lt;authorEmail&gt;<span style=\"color: #ff0000;\">rlab@travelersmedia.jp<\/span>&lt;\/authorEmail&gt;\r\n\t&lt;authorUrl&gt;https:\/\/<span style=\"color: #ff0000;\">www.travelersmedia.jp<\/span>&lt;\/authorUrl&gt;\r\n\t&lt;copyright&gt;<span style=\"color: #ff0000;\">RLab@2021<\/span>&lt;\/copyright&gt;\r\n\t&lt;license&gt;GNU\/GPL&lt;\/license&gt;\r\n\t&lt;version&gt;<span style=\"color: #ff0000;\">1.0.0<\/span>&lt;\/version&gt;\r\n\t&lt;description&gt;<span style=\"color: #ff0000;\">RLab Template&lt;<\/span>\/description&gt;\r\n\t&lt;files&gt;\r\n\t\t&lt;filename&gt;index.php&lt;\/filename&gt;\r\n\t\t&lt;filename&gt;templateDetails.xml&lt;\/filename&gt;\r\n\t\t&lt;folder&gt;images&lt;\/folder&gt;\r\n\t\t&lt;folder&gt;css&lt;\/folder&gt;\r\n\t&lt;\/files&gt;\r\n\t&lt;positions&gt;\r\n\t\t&lt;position&gt;breadcrumb&lt;\/position&gt;\r\n\t\t&lt;position&gt;left&lt;\/position&gt;\r\n\t\t&lt;position&gt;right&lt;\/position&gt;\r\n\t\t&lt;position&gt;top&lt;\/position&gt;\r\n\t\t&lt;position&gt;user1&lt;\/position&gt;\r\n\t\t&lt;position&gt;user2&lt;\/position&gt;\r\n\t\t&lt;position&gt;user3&lt;\/position&gt;\r\n\t\t&lt;position&gt;user4&lt;\/position&gt;\r\n\t\t&lt;position&gt;footer&lt;\/position&gt;\r\n\t&lt;\/positions&gt;\r\n&lt;\/extension&gt;\r\n<\/pre>\n<pre>&lt;extension version=\"2.5\" type=\"template\"&gt;\r\n<\/pre>\n<p>version : 2.5 \u3092\u6307\u5b9a\u3002Joomla \u306e Version \u3092\u793a\u3059\u3002<\/p>\n<h2>index.php<\/h2>\n<pre>&lt;?php defined('_JEXEC') or die('Restricted access');?&gt;\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html xml:lang=\"&lt;?php echo $this-&gt;language; ?&gt;\" lang=\"&lt;?php echo $this-&gt;language; ?&gt;\" &gt;\r\n&lt;head&gt;\r\n&lt;jdoc:include type=\"head\" \/&gt;\r\n&lt;link rel=\"stylesheet\" href=\"&lt;?php echo $this-&gt;baseurl ?&gt;\/templates\/&lt;?php echo $this-&gt;template ?&gt;\/css\/template.css\" type=\"text\/css\" \/&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;jdoc:include type=\"modules\" name=\"top\" \/&gt; \r\n&lt;jdoc:include type=\"component\" \/&gt;\r\n&lt;jdoc:include type=\"modules\" name=\"footer\" \/&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><code>jdoc:include<\/code> \u306f joolma \u306e module \u3084 component \u3092 Call \u3059\u308b\u305f\u3081\u306e\u5ba3\u8a00\u6587<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Joomla \u306e template \u958b\u767a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3059\u308b\u3002 Reference Template Development (Joomla.org) Environment Joomla Versio [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[],"class_list":["post-739","post","type-post","status-publish","format-standard","hentry","category-joomla"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=739"}],"version-history":[{"count":7,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/747"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}