Skip to main content

Comparison Between Drupal 7 and Drupal 8

Well in the learning process of drupal ........,
This is my second post..if you missed previous article please refer the following  link.
What is drupal and what is cms

As i said in my pervious article ,drupal is an open source framework .We can easily download it from Drupal official link.

As a extensive contibution of drupal community we are getting improved versions of drupal.
Currently  Drupal 7 and Drupal 8 is activily maintained by the community.

Lets find out the major difference between drupal 7 and drupal 8




Structure

1.Drupal 7 is based on procedural programming

2.Drupal 8 is  mainly focused on object oriented programming


Template engine

1.Drupal 7 is based on the  php template engine
2.Drupal 8 is based on  twig template engine

Routing

1.page callback functions are utilised  for each every page request   in drupal 7

2. Yml files are used to handle the routing configuration of the each path

Approach

1.Functioning of drupal 7 is based on hook functions
2. Functioning of drupal 8 is based on  services  of each class

Configuration

1.Settings of the each module is maintained by the variables
2.configuration of the each module is done through the yml files structures ..we can import and export the settings via yml files.

Listed above  is only the major difference between drupal 7 and drupal 8.
Some of the them may not understand the terms used.will  I will bring back more detailed information in the upcoming posts

Comments

Popular posts from this blog

Twig in Drupal 8

                                             Twig in Drupal 8 Introduction   In web development , every developer knows  presenting  a content in a  webpage is more important than any  functional logic inside the website whether the site is for tutoring , just a blog or its site for ecommerce products , how your site going to interact with the user plays major role for your business profit . Its a matter of minute to hold your customer/user in online to make a profit. you may thought , it is inappropriate to discuss those  with the title of this post  twig in drupal 8.   twig is used as presenter of your content in an easy way. Templating Engine in drupal 7     For those who are familiar with drupal 7 already know that php is used as templating engine . So its with an advantage of adding much m...

Redirection In Drupal 8 Programatcially

Redirection In Drupal 8  In this post we can learn about the ways we can make redirect in Drupal 8. You can make a custom redirect according to the context in many ways. Form Redirect      We can use the formstate object to redirect from form.     Currently below two methods are available from Drupal\Core\Form  formstate to build  a    \Symfony\Component\HttpFoundation\RedirectResponse  for redirection. 1) setRedirect  function setRedirect($route_name, array $route_parameters = [], array $options = []) This method will call the setRedirectUrl function inside it. 1) route_parameters - optional argument 2) route_name -  The name of the route name. 3) options -    (optional) An associative array of additional URL options, with the    *   following elements:    *   - 'query': An array of query key/value-pairs (without any URL-encoding)    *...

Hooks in Drupal

                  Hi All ,            For Every Drupal Developer initially get strucked with the concept of drupal is Hooks. It is the major driven approach in the old versions of drupal but  hooks are there in  drupal 8 too .                  Inorder to describe about  hook i dont want to explain with simple  statements or definitions. I assume that below points will make you clear in the concept of hooks in drupal 8. 1. Hooks occur at various points in the thread of execution, where Drupal seeks contributions from all the enabled modules. 2.A hook can be thought of as an event listener in the sense that an event triggers an action. The event in Drupal, such as deleting a node, would trigger the hook "hook_delete". 3.One way for modules to alter the core behavior of Drupal (or another module) is to use hooks. Hooks are specially-na...