Book Image

Building Websites with Joomla! 1.5

By : Hagen Graf
Book Image

Building Websites with Joomla! 1.5

By: Hagen Graf

Overview of this book

<p>Joomla! started as a fork from Mambo in 2005, when many of the original developers of the Mambo CMS moved to working on Joomla! It has rapidly grown in popularity and, according to its own description, is a "Cutting Edge Content Management System and one of the most powerful Open Source Content Management systems in the world. It is used world-wide for anything from simple homepages to complicated corporate websites. It is easy to install, easy to manage and very reliable."<br /><br />While the Joomla! CMS has the flexibility and power needed for complex, full-featured web applications, it is also simple to use to create basic websites. Its powerful, extensible template system can deal many different data types and control of user access, approval of content, scheduling of content display, and rich administrative controls are all included.</p>
Table of Contents (29 chapters)
Building Websites with Joomla! 1.5
Credits
About the Author
Preface
3
A Tour of Your New Website
5
Configuration of Joomla! Administration
Online Resources
Template Modules
How Do I switch an Image (Logo) in the Template?
Joomla! API
Forgot the Admin Password
Security Without Global Variables
Index

Appendix B. Template Modules

The <jdoc> element gives you the option to address dynamic sections in your template without using a single PHP command.

Template Code

Effect

<jdoc:comment>
Your comment
</jdoc:comment>

Comment Line

<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

Declaration of document type (XHTML header)

HEAD
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

Declaration of the correct content type

<link rel="stylesheet" href="<?php echo $this->baseurl
?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl
?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl
?>/templates/<DIRECTORY_OF_THE_TEMPLATE_/css/template.css"
type="text/css" />

Setting up the CSS file

<?php if($this->direction == 'rtl') : ?>
<link href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template_rtl.css" rel="stylesheet"
type="text/css" />
<?php endif; ?>

Setting CSS support for right-to-left languages

BODY<jdoc:include type="message" />

Joomla! system messages display

<jdoc:include type="modules" name="[position]" style="[style]" />

Loading of the module [position].[style]: see Chapter 13.

<jdoc:include type=component />

Display of the component. The name of the component is derived from the URL.