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

Tutorials - Drupal

By editor , 28 November, 2015

Create and translate menu links in Drupal 8

Tags

  • Drupal 8
  • Code

Programmatically create and translate menu links.

By editor , 28 November, 2015

Create a file with Drupal 8

Tags

  • Drupal 8
  • Code

Example:

By editor , 28 November, 2015

Translate a node programmatically

Tags

  • Drupal 8
  • Code
  • Translation
  • Node

Exemples:

$translation = $entity->getTranslation('de');

By editor , 28 November, 2015

Database Merge, Insert or Update if exist.

Tags

  • Drupal 8
  • Database

Merge SQL data base: Insert field or update if exist

By editor , 28 November, 2015

Get the user IP address : REMOTE_ADDR

Tags

  • Drupal 8
  • Code
  • User

Drupal do not like using the $_SERVER['REMOTE_ADDR']; to get the remote ip (the user ip address).

In Drupal 7, the function ip_address() exist but not in D8.
$ip = ip_address();

By editor , 27 November, 2015

Develop drupal modules using Netbeans IDE

Tags

  • Drupal 8
  • Drupal 7
  • IDE

You can easily intergrate drupal coding standards, files extention using following file. Netbeans Config.zip
On netbeans,
Goto : Tools->Options
Click on Import, and import two files on this zip archive.

By editor , 27 November, 2015

Develop drupal modules using Netbeans IDE

Tags

  • Drupal 8
  • Drupal 7
  • IDE

You can easily intergrate drupal coding standards, files extention using following file. Netbeans Config.zip
On netbeans,
Goto : Tools->Options
Click on Import, and import two files on this zip archive.

By editor , 27 November, 2015

Check Drupal custom module standards

Tags

  • Drupal 8
  • Code
By editor , 27 November, 2015

Theme not showing correctly when adding CSS/JS library

Tags

  • Drupal 8
  • Error

Probleme 1.
If you are activated 'Aggregate CSS files' on admin/config/development/performance, Disable it and refresh the page.
If the page display correctly, Probleme is in CSS Aggregation.

By editor , 23 November, 2015

Drupal 8 Menu System

Tags

  • Drupal 8
  • Code
  • Settings

1. Define route in module.routing.yml
Exemple :
module.view.settings:
  path: '/url/to/the/page'
  defaults:
    _controller: '\Drupal\module\Controller\Demo::view'
    _title: ''

Pagination

  • First page
  • Previous page
  • …
  • Page 20
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • Page 26
  • Page 27
  • Page 28
  • Next page
  • Last page

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