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 , 26 April, 2016

Replacement Patterns

Tags

  • Drupal 8
  • Code
  • Views

Examples of Available replacement patterns:

[title] ==
[body] == Body
[body-value] == Raw value
[body-summary] == Raw summary
[body-format] == Raw format

 

By editor , 18 April, 2016

Compare Two entity programmatically

Tags

  • Drupal 8
  • Code
  • Drupal 7

Example:

By editor , 18 April, 2016

Compare Two entity programmatically

Tags

  • Drupal 8
  • Code
  • Drupal 7

Example:

By editor , 15 April, 2016

Views with custom Tables - hook_views_data

Tags

  • Drupal 8
  • Code
  • Views
  • Hook

 

Officiel Documentation :

 https://api.drupal.org/api/drupal/core!modules!views!views.api.php/function/hook_views_data/8

 

Use multiple database conncetion with views_data() 

For that you must add 'database'

By editor , 14 April, 2016

Create new content type programmatically using Configuration API

Tags

  • Drupal 8
  • Code
  • Module

Module Name = my_module
Content Type = my_new_content

Create content type

Put this two files into my_module/config/install/

By editor , 13 April, 2016

Remove ctools Autosubmit on Views an From API

Tags

  • Drupal 8
  • Code
  • Drupal 7

Form API :
$form['the_text_field']['#attributes']['class'][] = 'ctools-auto-submit-exclude';
OR
'#attributes' => array('class' => array('ctools-auto-submit-exclude')),

Views (using hook_form_alter)

By editor , 13 April, 2016

Remove ctools Autosubmit on Views an From API

Tags

  • Drupal 8
  • Code
  • Drupal 7

Form API :
$form['the_text_field']['#attributes']['class'][] = 'ctools-auto-submit-exclude';
OR
'#attributes' => array('class' => array('ctools-auto-submit-exclude')),

Views (using hook_form_alter)

By editor , 31 March, 2016

Drupal 8 Examples for Developers

Tags

  • Drupal 8
  • Code
  • Module

This is a drupal 8 contrib module allow  you (developer) to find code examples.

By editor , 31 March, 2016

SimpleTest With Drupal 8

Tags

  • Drupal 8
  • Code
  • Module
  • Testing

 

 

 

Drupal Tutorial : https://www.drupal.org/simpletest

By editor , 28 March, 2016

Styel sheet Add / Remove / Override

Tags

  • Drupal 8
  • Code

Example :

# Add a new CSS file:
stylesheets:
  all:
    - layout.css

Pagination

  • First page
  • Previous page
  • …
  • Page 14
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • …
  • 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