Return to Snippet

Revision: 10372
at December 22, 2008 21:57 by chrisaiv


Updated Code
<!------ THis replaces the Traditional <head> information ------>
<?php  
 // no direct access 
 defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!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; ?>" >
<head>
<jdoc:include type="head" /> 
 <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/<?php echo $this->template ;?>/css/default.css" type="text/css" /> 
</head>

<!------ This is used where dynamic content will be loaded ------>
<jdoc:include type="component" />

<!------ Different Types of Module Styles  ------>

<!-- Normal XHTML -->
<jdoc:include type="modules" name="top" style="xhtml" />

<!-- Wrap a Table around a module  -->
<jdoc:include type="modules" name="top" style="table" />

<!-- Display Each Module Horizontally within a Table -->
<jdoc:include type="modules" name="top" style="horiz" />

<!-- Put 4 DIV's around your content to make rounded corners  -->
<jdoc:include type="modules" name="top" style="rounded" />

<!-- No Divs. Module Title also won't be displayed -->
<jdoc:include type="modules" name="top" style="raw" />

<!-- Debugging -->
<jdoc:include type="modules" name="top" style="outline" />

Revision: 10371
at December 22, 2008 21:30 by chrisaiv


Initial Code
<!-- THis replaces the Traditional <head> information -->
<?php  
 // no direct access 
 defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!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; ?>" >
<head>
<jdoc:include type="head" /> 
 <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/<?php echo $this->template ;?>/css/default.css" type="text/css" /> 
</head>

<!-- This is used where dynamic content will be loaded -->
<jdoc:include type="component" />

<!-- Different Types of Module Styles  -->
<jdoc:include type="modules" name="top" style="xhtml" />
<jdoc:include type="modules" name="top" style="rounded" />
<jdoc:include type="modules" name="top" style="raw" />
<jdoc:include type="modules" name="top" style="xhtml" />

Initial URL


Initial Description
I find these Joomla snippets to be useful when constructing a new template.

Initial Title
Joomla 1.5: Templating Snippets

Initial Tags
php, joomla

Initial Language
XHTML