Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Module

By editor , 4 April, 2018

Remove - Uninstall a deleted module from drupal registry

Tags

  • Drupal 8
  • Drush
  • Module

When you remove a module manually or re import a database, some times you have a message like "The following module is missing from the file system...". this is due to deleted modules.

By editor , 13 February, 2018

JavaScript Events on Drupal 8.

Tags

  • Drupal 8
  • Code
  • JavaScript
  • Module

Note : On drupal the best practice is use drupal behaviors but not JS or Jquery codes such as:
<button onclick='myFunction()'>Click</button>

By editor , 19 January, 2018

Event dispatcher. Create event, Dispatch and Subscribe.

Tags

  • Drupal 8
  • Code
  • Module
  • Services
  • Hook

Drupal's event system allow to create triggers when an event has been happened like create a custom hook on drupal 7.

By editor , 29 November, 2017

Get table column names on Drupal 8

Tags

  • Drupal 8
  • Database
  • Module

To get database table columns names of a mysql database you can use "DESCRIBE my_table;" method.

By editor , 27 September, 2017

Drupal Commerce - e-commerce with Drupal

Tags

  • Drupal 8
  • Module
  • Commerce

CAUTION : At this day (2017-10-12), Drupal commerce is very young. Therefor you can start the development of your e-commerce site but you may have bugs and security issues.

By editor , 18 September, 2017

Use IMCE on custom page

Tags

  • Drupal 8
  • Code
  • Drupal 7
  • Module

Example 1 (for drupal 7)


Step 1. Add file brows

Create a simple js file in your module directory (called yourModuleName.js) and enter the following Javascript.

By editor , 17 September, 2017

Disable cache for a specific page

Tags

  • Drupal 8
  • Code
  • Cache
  • Module

Disable cache for a custom page from route declaration.

If you want to disable cache for a custom controller (Custom module), You have no_cache option (YOUR_MODULE.routing.yml).
Example :
File : mymodule.routing.yml

By editor , 25 July, 2017

How to create a JSON web service on drupal 8 ?

Tags

  • Drupal 8
  • Code
  • Module
  • WebService

This is a simple example of a web service. For the example, We will make a service to multiply two numbers.

Create JSON WebService module

Create a module.

Here : mywebservice

By editor , 29 June, 2017

Drupal coding Standard and Best Practice

Tags

  • Drupal 8
  • Code
  • Debug
  • Module


Create a Drupal 8 module is a good idea, but develop as Drupal is BEST.

The famous tools PhpCS and PhpCBF allow you to check and correct (some) drupal coding standards and best practice errors.

By editor , 13 June, 2017

Create a custom DRUSH command on drupal 8

Tags

  • Drupal 8
  • Code
  • Drush
  • Module

To create a custom drush command, you must create a custom module like this (Here, mymodule).

Pagination

  • 1
  • Next page
Module

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer