Thursday, November 4, 2010

Tutorial to upgrade Joomla 1.5 to 1.6 (part 1) model

With 4 Beta 1.6 Joomla just released, many people are probably interested in knowing what it will take to get their Joomla 1.5 template in Joomla 1.6. In testing, we have migrated our (free) model of Genesis to 1.6 and made a few notes.

This is any official or finalized, but these steps should help most people with simple models of Joomla templates some clubs fancy schmancy will need assistance.

Joomla template files are located in /templates/ but if you do not know that, you probably shouldn't be trying this in

index

set ('_JEXEC') or die ('restricted access');

becomes

Defined ('_JEXEC') or die;

Next, we need to create a new special variable 1.6 somewhere in arrival

app $ = JFactory::getApplication ();

with this new variable defined, you need to change any occurrence of $ mainframe application $

for example, you would change

mainframe $-> getCfg ('live_site');

AT

app $-> getCfg ('live_site');

or change

mainframe $-> getCfg ('sitename');

AT

app $-> getCfg ('sitename');

If you like any of the info string variables in the url, you may have to remove the moment .we will have more info on new methods in part 2.Voici an example which was to launch a mistake for us:

$ pageOption JRequest::getCmd = ('option', ");

Module positions
If you are a developer model for a club, you might consider changing some of your positions of modules.Dans 1.6 data examples you standard modules in positions you would expect (like mod_search in user4) .the is encouraging more semantic names module position logic to you finish with a "left" named position in an area that is not... and gauche.Sinon if you made a custom template, you probably worry because you made logical position names that specific usage.

xml

You will need to add this new line of handguns

right below this line (which remains unchanged)


next change

AT

Then you need to convert your template settings to the new example méthode.Par, you will modify something like:



AT








The biggest change you'll notice is that you can now group template parameters in a

which is incredibly useful for models with a large number of parameters

CSS (css template.css or theme files)

. article_separator

is now

.item separator

and

. blog_more

is now

.Items-more

For the [print, PDF, email] button in an item, it can be a

    You will need to add something like:

{.actions}
margin: 0;
}
.actions li {}
list-style: none;
display: inline;
float: right;
}

The category table view is now a simple list so you will need to add something like

{table.Category}
border: 1px solid # CCC;
Width: 100%;
text-align: Center;
}
th, td {} table.category table.Category
padding: 2px 6px;
}
table.Category thead {}
background: # EEE;
}
ul .jcat-children, children .jcat li {}
margin: 0;
list-style: none;
}
.jcat-children Li a {}
background: url (..)(/ images/bullet_green_arrow.png) no repetition 12px 0;
Display: block;
padding: 5px 5px 5px 15px;
font-size: 0 9em;
}

Breaks were removed from the login form module so now labels are online, but is not quite of the gamme.Si you do not want to put them on their own line add:

# Username login Form-label # - login - form
# Form-connection # form - login - password label {}
Display: block;
}

Finally, you can now add a template_preview.png 800 x 600 at the root of your template (don't forget to add this line in your templateDetails.xml well!)

template_preview.PNG

Navigate to extensions > Template Manager > models to see it in action:template-preview

We will have more advanced template migration tips part 2 do we know what kind of success you have with these tips shortly.

Joomla 1.6 yay!


View the original article here

No comments:

Post a Comment