Posts

Showing posts from March, 2018

What is new in Drupal 8 as compare to Drupal 7

Image
Whether you’re a site builder, module or theme developer, or simply an end user of a Drupal website, Drupal 8 has tons in store for you. This this blog will enumerate the major changes in Drupal 8 for end users, for site builders, for designers and front-end developers, and for back-end developers.                                           Major Improvement in Drupal 8 1. Effortless Authoring 2. Mobile in its DNA 3. New configuration Management  4. Views in Core- Out of the box 5. Better Markup with HTML5 6. Multilingual capabilities  7. Built- In Web Services - HAL, HTTP Basic Authentication , RESTful Web Services, Serialization 8. Fun & Fast Theming - Symfony2 and Twig-Template Engine 9.Industry Standard Approach   10. Strong accessib...

Major difference between drupal-6 and drupal 7

Entities:  The major difference in drupal 6 and drupal 7 is the introduction of   entities . I personally feel that introduction of entity in drupal 7, is something which changes the drupal from just CMS to CMF(content management framework). Here you can create your own entity and you will decide which fields you want to use (ex, author, last updated etc). Through entities you can straight forward use drupal as Framework and do what ever you want. In drupal 7, new concept of   entity   introduce.   Entity   is generic concept which may be node, user profile, comment, taxonomy-term In drupal 7, user reference and node reference is replaced by enitity reference . In drupal 7, CCK is now core module In drupal 7, coding section drupal 7 use PDO . In drupal 7, there is db_result function. In drupal 7, we use ajax for making page dynamic instead using ahah. Drupal 7 use the Storage engine InnoDB whereas D6 uses MyISAM.   What is New in Drupal...

Create a custom Drupal 8 module

Image
Tasks Completed Create a site localhost site with Drupal 8 with given tasks http://localhost/drupal8/ userid/password : admin/admin@123 Task 1 created a custom module called custom. * Implemented hook_form_FORM-ID_alter, This function will Add a New field in Site information page * Site Api key value stores in /custom/custom/config/install/custom.settings.yml file for demo, check below URL http://localhost/drupal8/admin/config/system/site-information Task 2 created a new menu as /nodecheck/{key}/{nid} to return json object * created a controller to match siteapikey and nodeid , * if Key doesn't match it will respond access denaid * if key matches but node id is wrong, it will respond as 'not a node' * if key and node both matches, it will respond json object for url demo, check below URL http://localhost/drupal8/nodecheck/testkey/1 Conclusion Refered drupal.org and stackoverflow.com Spended 3.5 hours to complete these tasks Background Information Wh...

Create Multisite using single codebase and single Database

Building a Drupal Multi-site: Introduction: site Builders do build multiple site using the same codebase. They do so by creating a folder in the sites directory that is pointed at the host name. This is easily done in a product server but complicated in a local host machine 1. Create a folder for each siteswith domain name e.g daretod8.com 2. Create a file for settings.php in each folder    (see the default.setting.php for more details)    In Drupal 7, rename example.sites.php to sites.php 3. According to Drupal your site folder is supposed to look like this Sites      all      default        daretod8.com.sites.php             daretod81.com         modules         settings.php               daretod81.com   ...

TWIG : The Flexible, Fast, and Secure template engine for PHP

Image
Symfony Components Used by Drupal : 1. ClassLoader Component:  Loads your project classes automatically if they follow some standard PHP conventions. Installation :   $ composer require symfony/class-loader 2. Console Component:  Eases the creation of beautiful and testable command line interfaces. Installation :    $ composer require symfony/console 3. CssSelector Compnent : Converts CSS selectors to XPath expressions. Installation :    $ composer require symfony/CssSelector     4. Debug Component:  Provides tools to ease debugging PHP code.     Installation :    $ composer require symfony/Debug   5. DependencyInjection Compone...

Why Drupal is the most trending things now because of it's :

1. Usability 2. Security 3. Customization options 4. Cost 5. Size issue 6. Multiple Roles 7. SEO Built 8. Who uses Drupal System: WhiteHouse , NASA, Economist, WWE, many more big names in the list.

How to Maintain Drupal Security

 Below is the some important points: 1. Keep Your Drupal installation updated 2. Security Configuration 3. HTTPS 4. Secure Custom Coding 5. Input format & Permission 6. Secure Password & User ID 7. Server Security