Presentation is loading. Please wait.

Presentation is loading. Please wait.

J 1.5 Template migration to J1.7 / 2.5 Kirk Hayes 2012 artistichosting.com.

Similar presentations


Presentation on theme: "J 1.5 Template migration to J1.7 / 2.5 Kirk Hayes 2012 artistichosting.com."— Presentation transcript:

1 J 1.5 Template migration to J1.7 / 2.5 Kirk Hayes 2012 kirk@artistichosting.com artistichosting.com

2 Online Resources that I stole from or read on how to do this http://community.joomla.org/blogs/community/1257-16- templates.html http://www.slideshare.net/chrisdavenport/template-changes- for-joomla-16 http://docs.joomla.org/Upgrading_a_Joomla_1.5_template_t o_Joomla_1.6 http://www.joomlapraise.com/blog/item/520-joomla-15-to-16- template-upgrade-tutorial-part-1

3 3 Files Only !!! index.php templateDetails.xml template.css If you have a theme there will be more files! In my case I had to also edit red.css

4 Website Migration J1.5 install http://916ducatiowners.com J1.7 install http://916ducatiowners.com/migration/ Commercial product called SP Upgrade Results are here: http://916ducatiowners.com/migration/administrator/component s/com_spupgrade/log.htm

5 Immediately After Migration! Menu’s are messed up! Modules are messed up!

6 Index.php Line 4 defined( '_JEXEC' ) or die( 'Restricted access' ); becomes defined('_JEXEC') or die;

7 Index.php Jfactory $app = JFactory::getApplication(); you'll need to change any occurence of $mainframe with $app For instance you'd change: $mainframe->getCfg('live_site'); to $app->getCfg('live_site'); or change $mainframe->getCfg('sitename'); to $app->getCfg('sitename');

8 Template XML Changes to J1.5: J1.7:

9 Template XML Parameters J 1.5 J 1.7 The biggest change you'll notice is that you can now group template parameters into a, which is incredible useful for templates with lots of parameters.

10 CSS Changes template_css.css menu.css red.css

11 Basic CSS Changes*.article_separator is now.item-separator.blog_more is now.items-more For the [Print, PDF, Email] button in an article, there use to be a so you'll need to add something like:.actions{ margin:0; }.actions li{ list-style: none; display:inline; float:right; }

12 Login Form* Breaks have been removed from the Login Form module so now the labels are inline. If you'd like to put them back on their own line add: #form-login #form-login-username label, #form-login #form-login-password label{ display:block; }

13 Category Table* The Category Table view is now an Unordered List so you'll need to add something like table.category{ border:1px solid #CCC; width:100%; text-align:center; } table.category th,table.category td{ padding:2px 6px; } table.category thead{ background:#EEE; }.jcat-children ul,.jcat-children li{ margin:0; list-style:none; }.jcat-children li a{ background:url(../images/bullet_green_arrow.png) no-repeat 0 12px; display:block; padding:5px 5px 5px 15px; font-size:0.9em; }

14 Template_css.css Line 306 Unifying all the Unordered Lists and their corresponding List Items to look like the old website.

15 Template_css.css Line 392 This is to fix the content alignment of the text in the new template

16 Menu.css Changes Lines 185-187 { /* added for child menus when converting to j1.7*/ /*color: #585857;*/<-OLD Value color:#FFF; <-NEW Value }

17 Red.css Changes Line 228-242

18 Red.css Changes Line 254-263 Joomla 1.5 content used featured articles with sections and categories styled differently, but new Joomla has built in styling that is not found in Joomla 1.5. To make the new site and old site look similar we had to figure out which css properties were being defined for our new home page content. Then we had to add the old styling to those new div’s in our css file.

19 Red.css Changes Line 358-362 The modules Popular and Latest News articles all had lines under them, so I removed that by adding the text- decoration: none; However, I only wanted to effect the latest news and popular classifications thus the code I used was the following:

20 Questions? kirk@artistichosting.com artistichosting.com


Download ppt "J 1.5 Template migration to J1.7 / 2.5 Kirk Hayes 2012 artistichosting.com."

Similar presentations


Ads by Google