Bespoke Drupal Training  ( bespokedrupal | 35 hours )

Prerequisites:
  • An understanding of ___.
  • Experience with ___.
  • ___ programming experience.

Audience

  • ___
  • ___
  • ___
Course Outline:

Day 1

Introduction

  • Why to build to module instead of modifying source.
  • Setting up the module file structure
  • Writing secure code for secured drupal
  • Using doc block comment

Hooks

  • What is hook
  • How hooks works
  • Basic Introduction of some hooks with examples

What is Entity in Drupal vs Bundle (Content Type) , Fields

  • Use entity for custom data storage
  • Creating custom entity with a custom table
  • Why Content Type are not for all kind of data ?
  • Drupal default entity i.e content, user, taxonomy, comment, file
  • Using hook_entity_info() ,entity_load()

Assignment1

Install Drupal and Make custom module to create a custom menu a Module.

-------------------------------------------------------------------------------------------------

Day 2

Form API

  • Benefits of using form api
  • Creating a simple form , validating and submitting form using Form API
  • drupal_get_form()
  • Exploring more elements
  • Populating dynamic select options, radio button option
  • Submitting (Insert or Update) form in any drupal database table
  • Sending email using drupal_mail
  • Showing message using drupal_set_message('message')
  • form alter
  • autocomplete and #ajax form

Make a custom Form in drupal 8

Use ajax in Drupal 8 custom form

File Upload System

  • Understanding file_managed and file unmanaged
  • File unmanaged with an example
  • File managed with an example
  • Understanding drupal table 'file_managed' - Using drupal inbuilt ajax to upload files
  • Preview files on form
  • Validating files
  • Uploading files in drupal 'files' directory using file_save_upload
  • Use $file->status=1 and save_file($file) to permanently save file
  • Showing uploaded files using theme_image_style($params)
  • Register custom image style

Assignment 2

Create block and field plugin in drupal 8 custom module.

---------------------------------------------------------------------------------------------------------

Day 3

Working with Menus

  • How to use render array and creating tabs & subtabs
  • How to pass argument through path
  • Using placeholder
  • Using hook_page_alter & menu_alter
  • Use include files to improve performance

Theming

  • How theme layers can helps work together designer and coders
  • How to invoke a theme function, e.g theme_item_list() & theme_table()
  • Creating own theme function or creating templates
  • preprocess a theme function to alter data
  • Adding css & js
  • Override template files

Assignment 3

Create a custom theme in drupal 8 .

Override the base templates of default template in Drupal 8

---------------------------------------------------------------------------------------------------

Day 4

Database API

  • Running drupal dynamic mysql query using db_select()
  • Insert Query
  • Update Query
  • Delete Query
  • example to show latest members , recent comments
  • Rollback query using drupal Transactions

Entity Field Query

  • Understanding why use entity field query
  • Using EntityFieldQuery() to interact drupal entity base table like node, user, comment
  • Showing any taxonomy term (vocabulary terms) using EntityFieldQuery()

Node access rights

  • Understanding Drupal node_access, role_permission table
  • using hook_permission to register a permission
  • user_access() function to check permission

Assignment 4

Create a custom table

Override an existing form in drupal 8

Insert data in custom table in drupal 8

---------------------------------------------------------------------------------------------------

Day 5

Drupal Module development Debug method

  • Using Drupal Devel Module for better debug options. usage dpm($vriable_name)
  • Understanding dpm(get_defined_vars()) to show available variable in the page
  • Using drupal inbuilt watchdog() function for debug log
  • using simple & easy drupal_set_message($vars)

Creating Custom Module from scratch (i.e Ads Management Module)

  • Declaring custom tables using hook_schema in .install file
  • Registering 2 menu for ads listing and ads add
  • Creating ads add page using form API, file upload system
  • Creating ads listing page using entityFieldQuery()
  • Creating new bloc using hook_block_info(), hook_block_configure(),hook_block_save()
  • Showing all ads in form add/edit page to select with checkbox
  • Saving form custom checked ads value in our custom table
  • show ads on front end site using hook_block_view() - Testing and debuging our newly created module

Assignment 5

Create a custom module in Drupal 8

Which will collect all the patient details in Drupal 8 via custom form

Admin can view the list download the list.

Send it to the Doctors based on the category of disease they have.

Doctors will precribe the medicines to the patients.

----------------------------------------------------------------------------------------------------------------

Drupal Training FAQ

Drupal Trainer Profile

Our Drupal Trainers

  • More than 10 Years of experience in Drupal® Technologies
  • Has worked on multiple realtime Drupal projects
  • Working in a top MNC company in India
  • Worked with all overseas client from US and Europe.
  • Trained 2000+ Students so far
  • Strong Theoretical & Practical Knowledge
  • Strong communication skills