Joomla Template Tutorial - Part 6: In Joomla Template, the important thing is jdoc tag. As you see at below picture, jdoc tag is a way load module, component, and head component (like title, description, keywords, etc). In this post, we will try to use jdoc tag.
I just rememberring picture that placed jdoc in blocks.
From the picture, you can guess the jdoc formula:
<jdoc:include type="[head|module|component]" />
So, open your index.php within mytemplate folder. Add following bold code:
<?
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<html>
<head>
<jdoc:include type="head" />
</head>
<body>
<table width="100%" border="1" bgcolor="#FFFF00">
<tr>
<td
colspan="3">
<jdoc:include type="modules" name="top" /></td>
</tr>
<tr>
<td colspan="2">jdoc:include type="modules"
name="user3" /></td>
<td>jdoc:include
type="modules" name="user4" /></td>
</tr>
<tr>
<td rowspan="2"
valign="top">jdoc:include
type="modules" name="left" /></td>
<td colspan="2">
<table width="100%" border="1">
<tr>
<td>jdoc:include type="modules"
name="user1" /></td>
<td>jdoc:include type="modules"
name="user2" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="200">jdoc:include
type="component" /></td>
<td valign="top">jdoc:include type="modules"
name="right" /></td>
</tr>
<tr>
<td colspan="3">jdoc:include type="modules"
name="footer" /></td>
</tr>
</table>
</body>
</html>
The result, like this: