Joomla – Template: Using jdoc (part 6)

Posted: December 5, 2012 in Open source CMS

Share your word with the world

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.

2126055827_ff2f20216b=b

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…

View original post 49 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.