Joomla Template Tutorial – Part 5: Before put content, we must design the blocks where module or component placed. In this posting, we use ‘classic’ HTML (I mean, use <table> not <div>).
Our layout target like following picture:
Ok, open index.php within folder mytemplate. Enter following code:
< ? // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); ? > < html > < head > < / head > < body > <table border="1" width="100%" bgcolor="#ffff00"> <tbody> <tr> <td colspan="3">Top</td> </tr> <tr> <td colspan="2">User 3</td> <td>User 4</td> </tr> <tr> <td rowspan="2">Left</td> <td colspan="2"> <table border="1" width="100%"> <tbody> <tr> <td>User 1</td> <td>User 2</td> </tr> </tbody></table> </td> </tr> <tr> <td height="200">Component</td> <td>Right</td> </tr> <tr> <td colspan="3">Footer</td> </tr> </tbody></table> < body > < html >
Lastest posts in Joomla
- 3.4.6 Joomla Trash Manager - August 13th, 2010
- 3.4.5 Joomla Front Page Manager - August 13th, 2010
- 3.4.4 Joomla Category Manager - February 1st, 2010
- 3.4.3 Joomla Section Manager - December 23rd, 2009
- 3.4.2 Making New Article in Joomla - December 23rd, 2009
- 3.4.1 Joomla Article Manager - December 23rd, 2009
- 3.4 Joomla Content Menu - November 20th, 2009
- 3.3.4 Make New Joomla Menu - November 12th, 2009
- 3.3.2 Joomla Main Menu - October 28th, 2009
- 3.3.1 Joomla Menu Manager - October 14th, 2009
{ 2 comments… read them below or add one }
Why do I have to use classic HTML, and not DIV??
I’m more a div man!
You can create a layout for joomla using XHTML (Div’s).
Just tables for div.