| Joomla Templates Part II |
|
|
|
| Written by Administrator | |||||||||||
|
As explained in Part One , a Joomla Template is a normal html file (with the .php extension though) with small bits of PHP in it to load the CMS data. Example: <?php if ( mosCountModules( 'banner') ) { ?> This willl load ALL published modules assigned to the "banners" position -generally only the banners module- into the spot where this code appears, if there are any modules assigned. If not, nothing happens, which is useful to collapse empty module positions. There are two Joomla functions used here:
As you may have noticed, the Count function takes only one parameter: name of the position to check modules for. mosLoadModulesthis function can take two parameters:
To learn more about the display styles, please read on at the official Help site . Now we know about modules, what else is there to be pulled into the HTML skeleton from the CMS? Well, there are various bits of PHP commonly used to get Joomla output. The following will not be exhaustive I fear.
Christian Sweningsen
said:
|
|||||||||||
| Dear Mr. Eyz, I have been after learning Joomla for half a year now; putting together a major project, with no coding experience whatsoever -- but lots of project management etc. under my belt. This has included many, many hours studying usability and how-to-communicate-clearly-and-effectively; my site will only be of value to the degree it can fulfill that intention. The process has been delightful, and frustrating. It has been grand to discover the number of people who are offering tips and tutorials to pave the way. But -- yours are far-and-away the best I've encountered, and they hardly even merit comparison, they really should be distributed as models for others to learn from. How it is that you "cut-to-the-chase" and offer what is actually needed to understand and work with the processes involved, is a marvel to behold. I have felt like a wanderer in the desert, as most writers write - sincerely, I give them that credit - about *stuff*, with little understanding of the people who might be using what they have produced. Much, much gratitude! |
Joomla master
said:

| Thanks for useful tips! |
Isaac
said:

| The tutorials are very helpful kip it up Joomla deserve 2 b 1 :: |
null
said:

| Current Template Name $cur_template |
Content navigation
go to: Using SWF files in Joomla



