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 , 18 November, 2015

Add CSS stylesheets to a module (CKEditor)

Tags

  • Drupal 8
  • Theming
  • Code
  • Drupal 9

There are several ways to do that.

By editor , 17 November, 2015

Get taxonomy terms of a vocabulary - Drupal 8

Tags

  • Drupal 8
  • Code
  • Taxonomy

Using entityQuery, you can get the taxonomy terms  of a particular vocabulary.

By editor , 17 November, 2015

Get taxonomy vocabulary list - Drupal 8

Tags

  • Drupal 8
  • Code
  • Taxonomy

In drupal 8, this retrun taxonomy vocabularies as an array.

$vocabularies = \Drupal\taxonomy\Entity\Vocabulary::loadMultiple();

By editor , 16 November, 2015

Add "Comment" Field

Tags

  • Drupal 8
  • Settings

Comments are set as a field, so by default it is not present. To add comment field Goto:

Admin -> Structure -> Content types ->"YOUR CONTENT"
  ->Manage fields->Add field
  ->Select 'Comments' on 'Re-use an existing field' and Save.

By editor , 16 November, 2015

Install Drupal 8 with Virtualmin - Error 500

Tags

  • Drupal 8
  • Server
  • Error

Reson 1 : FollowSymLinks

By default, virtualmin does not support Options +FollowSymLinks (on .htaccess).

Solution 1 : Recommended

By editor , 15 November, 2015

Create a simple module for Drupal 8 - Step 3 - Create Dynamic Page/ Block

Tags

  • Drupal 8
  • Module
  • Cache

In addition to the Step 2, Just add
    $form['#cache']['disabled'] = TRUE;
    $form['#cache']['max_age'] = 0;

 

By editor , 14 November, 2015

Create a simple module for Drupal 8 - Step 2 - Create Simple Page

Tags

  • Drupal 8
  • Module

1. Create a info.yml file
Here : test.info.yml

name: 'Test Module'
description: 'Test module for Drupal8.ovh'
type: module
core: 8.x
varsion: 0.1-dev
package: Test

   

 

By editor , 14 November, 2015

Create a user account programmatically in Drupal 8

Tags

  • Drupal 8
  • Code
  • User

    Here an example for create a user account programmatically in Drupal 8

 

    $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
    $user = \Drupal\user\Entity\User::create();

By editor , 13 November, 2015

Create a simple module for Drupal 8 - Step 1

Tags

  • Drupal 8
  • Module
By editor , 13 November, 2015

Create a node programmatically in Drupal 8

Tags

  • Drupal 8
  • Code
  • Node

Here an example for create node programmatically in Drupal 8

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