Friday, October 15, 2010

Tip - How to reuse Joomla 1.0 Templates

Do you have a huge collection of nice Jomla 1.0 templates, and dunno what to do with them? Let's go green and reuse themWink Most of templates are easy to adapt. If you don't want to add there new trickery, just want to made them usable in the new environment, jou can do it in a fast and easy way. You need to change only few lines of code in your favourite Joomla 1.0.x templates to make it compatible with Joomla 1.5.*:
  • <?php mosShowHead(); ?> changed to <jdoc:include type="head" />
  • <?php echo $mosConfig_live_site;?> changed to $this->template
  • <?php mosLoadModules ( 'user3', -1); ?> changed to <jdoc:include type="modules" name="user3" style="raw" />
  • <?php mosMainBody(); ?> changed to <jdoc:include type="component" />
Thanks to the guys at JoomlaPeople.com for sharing this tip!

No comments:

Post a Comment