Joomla - Template: Using jdoc (part 6)

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' );
<jdoc:include type="head" />


<table width="100%" border="1" bgcolor="#FFFF00">
<jdoc:include type="modules" name="top" /></td>    
      	<td colspan="2">jdoc:include type="modules" 
name="user3" /></td>    
type="modules" name="user4" /></td>        
      	<td rowspan="2" 
type="modules" name="left" /></td>
      	<td colspan="2">
        	<table width="100%" border="1">
                	<td>jdoc:include type="modules" 
name="user1" /></td>
                	<td>jdoc:include type="modules" 
name="user2" /></td>                
      	<td height="200">jdoc:include 
type="component" /></td>
      	<td valign="top">jdoc:include type="modules" 
name="right" /></td>    
      	<td colspan="3">jdoc:include type="modules" 
name="footer" /></td>    


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)

Bookmark and Share Tag: joomla, template Category: Web Design, PHP Framework Post : December 13th 2007 Read: 70,345


blog comments powered by Disqus