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

Drupal 8

By editor , 24 August, 2016

Get Entity, Node, Taxonomy from URL Path

Tags

  • Drupal 8
  • Drupal 7

Drupal 8

 

Drupal 7

Get the node
$node = menu_get_object();

Get Path alias
$alias = drupal_get_path_alias();

By editor , 22 August, 2016

Change Drupal 8 text field maximum length

Tags

  • Drupal 8
  • Code
  • Drupal 7
  • Database

If there no data, You can use field_update_field (tested on D7) Like:

By editor , 18 August, 2016

Drupal 8 clean URLs on Virtualmin

Tags

  • Drupal 8
  • Server
  • Error

Probleme 1. Showing /index.php/clean_url_path

By editor , 11 August, 2016

BEF : Views Exposed filter Options

Tags

  • Drupal 8
  • Drupal 7
  • Views

Group exposed fields of a view exposed form.

  1. Install the module "Better Exposed Filters" (BEF).[drush en better_exposed_filters -y]
  2. Go to : THE_VIEW-> Advanced -> Exposed form
  3. Set : Exposed form style = Better Exposed Filters
  4. Go to
By editor , 5 August, 2016

Views Complex Filters

Tags

  • Drupal 8
  • Drupal 7
  • Views

Filter contents from two different content types with two different fields.

  1. Add two fields to the field list
  2. Add "Global: Combine fields filter"
  3. Add conditoin EX : contains 1
By editor , 1 August, 2016

WYSIWYG and CKEditor Advanced Configuration

Tags

  • Drupal 8
  • Drupal 7

Content Filtering

Allow all : config.allowedContent = true;

Allowing any class in the editor is
config.extraAllowedContent = '*(*)';

By editor , 1 August, 2016

Disable 'Replace content' option on WYSIWYG Template

Tags

  • Drupal 8
  • Drupal 7

Edit the CKEditor profile, Add following line to the JavaScript Configuration on Advance options.

config.templates_replaceContent = false;

By editor , 29 July, 2016

Preprocess a Field, Change Theming of a field

Tags

  • Drupal 8
  • Drupal 7
  • Theming
  • Pre Process

For thah you must use an additional process.

1. Create a custom module (Example : Here we use mymodule)

By editor , 25 July, 2016

Drupal MySQL Database Import and Export via Drush

Tags

  • Drupal 8
  • Drupal 7
  • Drush
  • Database

Export Drupal 8 MySQL Database via Drush

drush cr
drush sql-dump > /pathto/mysql-dump-drupal8.sql

By editor , 25 July, 2016

Organize the Features on Drupal

Tags

  • Drupal 8
  • Drupal 7
  • Features

Settings to use with each type of features.

This tutorial is an example for the following Features Structure:

Pagination

  • Previous page
  • 12
  • Next page
Drupal 8

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