intraspace

Joomla Workaround

Converting your joomla templates to 1.5

( From http://www.cssplatform.com)
As the new Joomla release dawns on us I gues this will be a very common question for those wishing to upgrade to the
new version and still keep the precious template.
The process is very simple and it only requires a few small changes in the code. How easy it is will certainly depend on
how your joomla template provider has coded your .php file. From my experience some of the joomla templates out there
have some pretty scary coding and can take a long time to find anything.

Here it goes:

1. Replace the head of your document with the code below. ATT: This icnludes the latest changes made to correct the
SEF issues with the previous RC release. Replace all of the top code in your index.php code down to the tag with the
following:
<!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>

2. Replace all php codes relating to modules.
This is an example of an old code <?php mosLoadModules ( 'header', -3 ); ?>
Replace with this <jdoc:include type="modules" name="header" style="xhtml" />

3. Replace the mainbody code from <?php mosMainBody(); ?> to <jdoc:include type="component" style="xhtml" />

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

 
Ab 4,95 $ pro Monat
150 GB Datenbackup IDrive Online Backup
2 GB Kostenlos !!

Intraspace-SocialBookmarks

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Add to: Folkd Add to: Spurl Add to: Google Add to: Blinklist Information
by: Camp26.Com
Follow us on Twitter
You are here  : Home Joomla Tips und Tricks Converting your joomla templates to 1.5