26 May, 16

"Never memorize something that you can look up." - Albert Einstein... #Drupal 8 I'm looking at you!

24 May, 16

In D7 drupal_get_form(‘user_login’) was too short, so got replaced by \Drupal::formBuilder()->getForm(Drupal\user\Form\UserLoginForm::class)

06 May, 16

Snippet: How to check for user access or permission in Drupal 8

  1. <?php
  2. // Get current user
  3. $user = \Drupal::currentUser();
  4. // Check for permission
  5. $user->hasPermission('administer content');
Read now
03 May, 16

How To Disable #Drupal 8 caching during development https://www.drupal.org/node/2598914 Definitely Drupal 8 isn’t the most developer friendly thing now…

02 May, 16

ES6 For Django Lovers - https://www.caktusgroup.com/blog/2016/05/02/es6-django-lovers/ #js #python #django

15 Apr, 16

JQuery.cookie in Drupal 7

A quick tip for all Drupalistas outhere: if you want to use jQuery.cookie in your project, you actually don't have to download and install the library. jQuery.cookie is a part of Drupal 7 and can be included as easy as typing: 

  1. drupal_add_library('system', 'jquery.cookie');

Wondering ...

Read now
12 Feb, 16

A lightweight package for handling menus and breadcrumbs in your #django project - https://github.com/EliotBerriot/django-navutils

12 Feb, 16

A very useful tutorial on implementing The Registry pattern in your #Django apps http://next.kii.eliotberriot.com/stream/eliotberriot/items/25

09 Nov, 15

Default Search API Sorts Per View in Drupal 7

It's been a while since I've written a post here (especially, Drupal-related). But today I have something interesting to share.

There's a module called Search API sorts (https://drupal.org/project/search_api_sorts) that provides custom sorts and a global sort block for Search API. The module itself is ok, but ...

Read now
13 Oct, 15

Easy #Django Deployments with #Ansible: http://technivore.org/posts/2015/10/09/easy-django-deployments-with-ansible.html