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:
| Series this article: Joomla - Template: Understanding Basic Template (Part 1) Joomla - Template: Understanding Module Position (Part 2) Joomla - Template: My First Template (Part 3) Joomla - Template: Activate Template (Part 4) Joomla - Template: Creating Layout (part 5) Joomla - Template: Using jdoc (part 6) Joomla - Template: Using Parameters (Part 7) Joomla - Template: Place Text (Part 8) Joomla - Template: Creating Preview Thumbnail (Part 9) advertisements blog comments powered by Disqus |

