Thursday, July 7, 2011

Convert Drupal 6 to Drupal 7 By Ishita Ganguly

Converting to Drupal Drupal 6 template 7 includes a number of changes in different segments, such as file information, Theme Settings, HTML templates, Page.TPL, Region.TPL, Block.TPL, Node.TPL, comment, issue Search, CSS, Javascript, Skinr ans. The entire process is written in PHP, so you need a broad knowledge of programming language to make template for Drupal 6 Drupal 7. However, the process step by step template for change are listed below:

Converting Drupal 6 Drupal 7:

First, you need to add classes to the variables in the template. The process of sending the body template.php classes to templates and is standardized. The name of the variable $ vars.

The rows are considered as regions. Regions has no direct effect after the conversion, but when it comes to the ranks of merger, the regions should be changed a bit. You must have region.tpl.php the template file and preprocess function. The function is in the row of the grid must be converted to the template region and at the same time functions as well. So, now you have row of the grid format as page.tpl.php.

You should use the render to complete the conversion of the network to the region. You can read the design configuration of the network of from.info files. You can also read template.php. However, the first option would be easier for you if you are a beginner.

Drupal always contextual links. It is necessary to remove the code from the merger of the links to edit block. You also have to remove the function call, the fusion core preprocess comment packaging, so you can easily remove the constant use, created by this function.

Finally, it is necessary to remove the pre-rendered code Ubercart and put it in the node-product.tpl.php template. This step will help make Drupal 7 Ubercart.

Now that the template files are ready for conversion, the need to use a few more steps for use in real-time functions:

Region.tpl.php is a new template in the fusion core. Drupal 6 grid_row file Region.tpl.php does the same thing in Drupal 7, but the latter has been slightly modified to add extra features.
After the change, there will be no default search box in Drupal 7. The new version has a search box as search_block_form.tpl.php in Drupal 7.
You must integrate all the templates again with brands including its attributes and classes. You can use the templates referenced in the fusion core.



No comments:

Post a Comment