Home Joomla Howto convert joomla 1.0.x templates to 1.5.x
formats

Howto convert joomla 1.0.x templates to 1.5.x

Published on 14 November 2010 by in Joomla

For making your “old” Joomla 1.0.x working in native mode in Joomla 1.5.x, please follow the next steps:

Replace the head of your document with the code below. Replace all of the top code in your index.php code down to the tag with the following:
Code:

1
2
3
4
5
6
<!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; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>
<!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; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>

Replace all php codes relating to modules.
This is an example of an old code
Code:

1
<?php mosLoadModules ( 'header', -3 ); ?>
<?php mosLoadModules ( 'header', -3 ); ?>

Replace with this

Code:

1
<jdoc:include type="modules" name="header" style="xhtml" />
<jdoc:include type="modules" name="header" style="xhtml" />

Replace the mainbody code from
Code:

1
<?php mosMainBody(); ?>
<?php mosMainBody(); ?>

to
Code:

1
<jdoc:include type="component" style="xhtml" />
<jdoc:include type="component" style="xhtml" />

Rename the template_css.css file in your /css folder to template.css

A more extensive tutorial is over here.

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
© Locutus-Web Services
credit