-image-Setting up Joomla
The following is an article written by Barrie North of compassdesigns.net regarding setting up Joomla. It is one of the best articles I have seen about setting up Joomla, and cut and pasted it in here when I was setting it up myself.
He has put up a Zip file containing the full tutorial here:
http://www.compassdesigns.net/ebooks/LiveSiteSeries.zip
|
In this article we will look quickly at installing joomla and then Installing JoomlaThere are several ways to do this, fantastico, manually, and there is a handy tool to do it http://joomla.astang.com/autoinstall. Please note I have never used this, so you are on your own! My preferred method is to do it manually, its really pretty easy, especially if you have cpanel on your host server:
Now, we have only uploaded the files, we haven’t “installed” it yet. nto details of how to install Joomla. Here is the The Blank Joomla TemplateNow, one of the points here is to start with a blank joomla template. So, let’s set that up. You will need this file: livesitedesign.zip. In this file are the various files and folders that make up a blank Joomla template:
To add the template (again, copious tutorials exist) you go to the Note you can actually add the files individually (not in a zip) too. You have to put them in yoursite.com/templates. The index.php: joomla doctypeSo here we are getting to the first significant part of this <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”<?php echo _LANGUAGE; ?>”> Got it? OK, you can skip the next part then… Browser WarsThe nitty gritty of doctypes starts getting messy. I especially like Now to complicate things, there is something called “quirks” mode. Now, unfortunately, people sometimes end up in quirks mode accidentally. It usually happens two ways:
The part about IE6 quirks mode is important for us. We are only really Standards Compliant JoomlaSo, here is the good bit, making a page standards compliant, where Some useful links:
What else is in index.php?Let’s look at the structure of the header first. A great outline is at http://help.joomla.org/content/view/44/60/. Unfortunately it does have a layout based on tables, but we will change that. We want to be as minimal as possible, but still have enough for a production site. The header information we will use is: <?php defined( ‘_VALID_MOS’ ) or die( ‘Direct Access to this location is not allowed.’ ); ?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” lang=”<?php echo _LANGUAGE; ?>”> <head> /css/template_css.css”;</style> OK, so what’s all that?
<?php defined( ‘_VALID_MOS’ ) or die( ‘Direct Access to this location is not allowed.’ ); ?>
Makes sure that the file isn’t being accessed directly.
<!DOCTYPE HTML PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” lang=”<?php echo _LANGUAGE; ?>”> We talked about this above. The “<?php echo _LANGUAGE; ?>” is
<meta http-equiv=”Content-Type” content=”text/html; <?php echo _ISO; ?>” />
What character set we are using (don’t ask).
<?php mosShowHead(); ?>
Header stuff that is set in the global configuration again. It includes the following tags (for example):
We’ll come back to this later.
<script type=”text/javascript”> </script>
To stop a bug, that being a flash of un styled content. Details
<style type=”text/css” media=”screen”>@import
“<?php echo $mosConfig_live_site; ?>/templates/<?php echo $cur_template; ?> /css/template_css.css”;</style> I am using import as a way to stop the site breaking with Netscape A blank joomla template bodyThis will be very very easy! Ready? <body>
<?php echo $mosConfig_sitename; ?> <?php mospathway() ?> <?php mosLoadModules(’top’);?> <?php mosLoadModules(’left’);?> <?php mosMainBody(); ?> <?php mosLoadModules(’right’);?> <?php mosLoadModules(’bottom’);?> Now that’s what I call lean code! I have a reasonably logical order:
This order is called semantic markup. Or at least by the time we add Now its worth noting that what we have here really is only the Now at this point, the only CSS I have applied is set all text to Verdana and 76% size.
Tutorial 5: Making a 3 column Joomla Theme for your joomla website |
|
||||||
Tutorial: Making a 3 column joomla theme for your websiteIn this joomla tutorial, we will look at a 3 column theme for your Let’s face it, making a joomla theme with tables is easy. That’s why I am going to move quickly on to the actual layout possibilities, Kevin Hale’s - An Overview of Current CSS Layout Techniques Ok, so now we have done some bedtime reading, or knew some of CSS to
Although its worth taking a while to look some of these over. This A Three Column Joomla Theme through CSSAfter reading through any of these CSS guides above, or know a However, for the purposes of this joomla tutorial, we are going to #leftcontent {
position:absolute; will make a box that is 200px wide, and starts 20px from the top and This will be the parent box: #wrapper {
position:relative; width:560px; If curious, we have changed the type of positioning from absolute to <div id=”wrapper”>
Text in wrapper, blah, ipsum stuff </div> <div id=”leftcontent”> Leftcontent text, blah and domini and what is the URL to generate that random latin? Based on our two CSS rules above, this would look like:
OK, not much use. Now let’s put the leftcolumn div inside the wrapper (hey, why do you think we called it “wrapper”?) <div id=”wrapper”>
wrapper text, blah, blah and ipsum stuff <div id=”leftcontent”> Text in leftcontent, blah, blah and ipsum domini and what is the URL to generate that random latin </div> Now it should look like this:
Much better. Now the text is all ontop of itself, but we don’t need So, with that bit of explanation, here is our 3 column joomla theme: /* Basic 3 column joomla theme*/
body { margin:10px 10px 0px 10px; padding:0px; } #leftcontent { position: absolute; left:10px; margin-right:211px; background-color:#fff; An adpatation of a layout used a few places round the web, you can read more about it at http://glish.com/css/7.asp. Its not *quite* simple absolute positioning (you didn’t think it Right, so its live site design time (drum roll). Remember, our index.php file currently looks like this: <body>
<?php echo $mosConfig_sitename; ?> </html> Now we will put in some positioning with our new CSS: <body>
<?php echo $mosConfig_sitename; ?> <?php mospathway() ?> <?php mosLoadModules(’top’);?> <div id=”leftcontent”> </div> <div id=”centercontent”> <div id=”rightcontent”> <?php mosLoadModules(’bottom’);?> OK, so now we have a 3 column joomla theme, not bad. Let’s take a quick look; livesite.compassdesigns.net Yes, we still have a W3C Standards Compliant CSS Joomla Website . OK, I grant you it doesn’t look that amazing right now, but hey, that’s what next week’s installment is for!
|
|||||








