📜 ⬆️ ⬇️

The digest of interesting materials from the world of Drupal # 4

Hello!

The most interesting and useful from the world of Drupal over the past 3 weeks.



In Russian


  1. The first steps in the development of Twitter Bootstrap and Drupal will help make the article Bootstrap + Drupal 7: a quick tour for beginners .
  2. Another double-edged Drupal tool you should know about: hook_module_implements_alter () .
  3. @xandeadx is divided into a gentlemanly set of modules .
  4. On Habré published the article Configuration Management in Drupal 8, a review for developers . If any of the examples no longer work, check the Change records for all API changes logged.
  5. Brevity is the soul of wit. Micro Council - global $ user in functions . Yes, and of course, call this parameter $ account, not $ user :)

Drupal-lite


Our regular heading for beginners.
  1. A simple example of customization of the contact form: change the title and redirection .
  2. We study the field patterns in the Display Suite , calmly, step by step, with screenshots.
  3. With the help of the Workbench family of modules, a flexible system of moderation and workflow can be organized on the website. For an example of adding a new document state, see the Add a New Moderation State Tab to Workbench article.
  4. 5 anti-spam modules + as many more in the comments. Simple Anti-Spam also showed up.
  5. In Drupal, just $(function() {}) doesn't roll. Read more about Javascript and Drupal behaviors in the latest article on lullabot.

Drupal and Git


  1. For those who have not made a single commit in their lives, the author of the Drupal blog CodeKarate has burst into a series of articles on Git: 1 , 2 , 3 , 4 , 5 .
  2. The article “Git setup with hook for post-receive” discusses how to avoid storing the Git repository in the docroot of your server, based on automatic synchronization using post-receive hooks.
  3. Quite often, you have to deal with several remote Git repositories at the same time, for example, with the Drupal core code and the code of the developed site. In this case, there is a problem when with the original repository we also drag down its entire history, and this can significantly affect the space occupied. The article “Multiple git remotes, the --depth parameter and repo size” contains a solution to this problem.

All for Drupal developer


  1. The article “Rapid Drupal Scaffolding with Yeoman” deals with the generation of code for entities, modules, etc. Based on templates with Yeoman Generator . In continuation, you should read the article “Creating Custom Ctools Layout Plugins with Yeoman” , which is devoted to the generation of plugins for Ctools, as well as “Yo Hedley!” On Headless Drupal. Now you know everything about Yeoman!
  2. Modern page design often involves the use of panels, Views and other features that ultimately become portable with the Features module. The article “Code Management in Drupal 7 using Features, Ctools, and Panels” discusses creating listings using standard tools (EntityFieldQuery, etc.), rather than using the Views module, with a focus on properly integrating all this stuff with the module Panels, and the subsequent packing in a feature.
  3. Drush continues to acquire beautiful sites with documentation: http://docs.drush.org/en/master/ has been added to http://drushcommands.com/ .
  4. By the way, Drush can be run automatically via Grunt , if you really want.
  5. Drupal caching is always a hot topic. We go deeper into the wilds of the kernel in order to understand why it does not work out the cache of pages for anonymous users. On the same topic can be read at 2bits .
  6. How to use your theme function for form? Useful when the layout of the form is very specific.

Drupal 8


  1. Drupal Developer Career Plan from WebOmelette: 6 steps to become a Drupal 8 developer .
  2. The short basic course (again, for the developer) is called “Drupal 8 in 2 steps”. Why steps should be exactly two - ask for help from the hall :)
  3. The third step is logical to put the study of Twig (new template engine, which replaced the PHPTemplate) under the article “Gettin` Twiggy” .
  4. Another beta (sixth) Drupal 8 has been released . Unfortunately, there is still no normal Upgrade path.
  5. Continues to publish a series of articles devoted to the program expansion of the Views module: fields , filters .
  6. Gabor Hojtsy continues to delight everyone with his work for the benefit of internationalization, and in his Drupal 8 multilingual tidbits series , the seventeenth (!) Article has appeared, entitled Content translation .
  7. The magazine Drupal Watchdog published an article dedicated to the creation of interactive tours in Drupal 8.
  8. If you were looking for clear definitions of various terms in Drupal related to the menu operation (menu, path, uri), we advise you to read the article “How does Drupal use these different terms? Route, Path, URL, URI, Link, Menu item “ .
  9. A note on why annotations are needed, and in general, and in particular, in Drupal.

Business and community


Drupal out of code:
')


  1. A few weeks ago, the community actively retweeted articles about using Drupal in Smart Home . And although the authors mercilessly exploit all the bad practices that can be found in the drupal, it is still very fun.
  2. Chx leaves again, now from the Drupal Planet aggregator. Friendly Drupal-community loves him very much and hopes that soon he will come back again, rested and with magnets :)
  3. DrupalCon Latin America begins, which means there will soon be many new videos.
  4. The association published the list of participants in Drupalkon in 2014 .

Interesting modules


  1. Views Fast Field - display of entity fields without loading the entity itself.
  2. Views Accelerator - automatic optimization of the post execute of the Views phase with analysis, statistics, when standard time caching is not enough. Effective for working with geodata, fields with prefixes and suffixes, etc.
  3. Memcache Storage is an alternative to the Memcache module that integrates Drupal with Memcached for high performance. Memcache Storage has a number of additional features compared to the original.
  4. Corresponding Entity References - if entity A refers to entity B, and entity B refers to A, then if you update or delete the original entities, the connection may become incorrect. This module solves this problem.
  5. The Translation Management Tool is a toolkit for translating content from various sources, including manual, machine, and integration with any translation services.
  6. Drupal Issue Tracking is an extension for Chrome that allows you to monitor the status of any tickets (issue) from Drupal.org.
  7. Apido is a user script (userscript) for Chrome / Opera / Firefox that highlights variables and curly braces when displaying code on api.drupal.org and drupalcode.org.
  8. Pushbullet API - sending Push-notifications to mobile devices, as well as to your browsers ( article ).
  9. Machine Name - adds a field for storing a machine name (stores alphanumeric value, which should be unique and rarely change ( article ).


Do you write articles about Drupal for the benefit of the community? Please contact us: Oleg Kot , Katya Marshalkina .

Source: https://habr.com/ru/post/250223/


All Articles