Skip to main content

Posts

Things You Must Know Before Trying Forms In Drupal 8.

 You Should Invest In Forms                      What does your customer think?  What do they looking for? will decide the success of any business.    In a digital marketing, Most of the customer requirement is gathered through forms. So its   essential  to spend some  time with forms Example : a user can search a particular product using the search form on an e-commerce website. Form API in Drupal 8          As we know already Drupal use forms for most of the administrative site building. Drupal 8 follows object-oriented style of programming with the integration of symfony . Based on the purpose of the form, it can inherit the basic properties and methods of the below classes. 1.Config Base 2.FormBase 3.ConfirmBase   Note : Routing configuration is done through the yml files in drupal 8 When the user hits the va...

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...

Multi site Set up on drupal on Lamp(Linux ,Apache , Mysql, Php )

Hi all, In this post , we are going to create a multisite on drupal 8 , Two  sites namely dogs and cats can share the same codebase and different database  Here am using Ubuntu 16.04  , So that some server configurations may vary depend on your server... So please follow the below steps to create a multi site on drupal 8 Step1:  Download the latest  drupal 8 project using the  link   www.drupal.org . Note: You can use any other method you follow to download drupal Project ..For Example : Console , Composer Step 2:  Extract the downloaded  package inside your Html folder For Example:  var/www/html/ drupal-8.4.3( Your downloaded folder here ) Step3:  In your Drupal Root Folder (drupal-8.4.3)       In the sites folder create the  required  sites as shown in the screenshot Here i create two sites namely cats and dogs sharing the same codebase and different database Step4:...

Process of page request to response in Drupal 8 - Part 1

For every drupal developer is it necessary to know the under the hood process of how drupal internally works and some of them may already know  page rendering process of drupal 7. Lets see the Process of User Request to Response in  two parts: PART 1: Step 1:  The user make a request in the browser in the form of url for example: www.example.com Step 2:  The browser will pass the request to the Web server where the website  resides(Here Drupal makes website...) Step 3: In drupal , every request is handled via index.php file ,while digging into index file we may see the following lines as shown in the image. Note:  Symfony is a playing a major role  in  drupal 8 and drupal 8 follows the object oriented style of programming .. Components used from symfony in drupal 8.  So as you see , there is a two use statements  1.use Drupal\Core\DrupalKernel 2.use Symfony\Component\Ht...

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...

Top 5 Websites To Learn Drupal 8 CMS

Top 5 Websites To Learn Drupal 8 Hi All ,                In the learning process of drupal 8 , some of you may find little difficult to get  drupal 8  resources , websites and tutorials . To ease the process of  learning drupal 8 effectively here  i mentioned  the five best websites to learn drupal 8.   Drupal.org             It is  official website of drupal . Even Though Some of the documentation is incomplete for drupal 8 , you may get stable and updated information        2.   Acquia             It is the second best choice because having Great Articles and Detailed Explanation of each concept in drupal 8.     3.   C ipix                    It is one of the favorite website which i used to learn drupal 8. It helps to ...

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 p...