📜 ⬆️ ⬇️

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

Hello!
For a month we have accumulated a lot of interesting links for you. Meet the ninth edition!


In Russian


Spring in the Russian Drupal community was fruitful. Catch ten links to excellent articles in Russian:

  1. A large technical article “ Creating a node through a custom form using the CTools modal window ” has appeared on the angarsky.ru blog. And although this material is far from being for beginners, we are honorably discovering a digest for them! Everything is very detailed and correctly explained and shown in the real code.
  2. A little hardcore from the same author: “ Get programmatically a list of updates for the database .” This article demonstrates the benefits of open framework Drupal - if you wish, you can do whatever you want.
  3. Another practical article “ How to add an entity form edit form to your form ” was posted in the blog drupaler.by. By the way, Ctools and for the fields have convenient helpers , so as not to deal with the pitfalls of Field API alone.
  4. Where are without undecked and his unique brief style of presentation. Module Language Domains will be borne in mind .
  5. Want to make your rapidshare with a timer before downloading? Pavel Kataev shared his module Delay Download for this purpose, although the module is not yet available from drupal.org.
  6. And another code: " How to programmatically edit a user profile. "
  7. Peter Lozovitsky told how he translated the site from MySQL to PostgreSQL.
  8. New on community sites. On drupal.ru read about setting up a server based on the nginx- jedi config Perusio .
  9. On dru.io there was a note about your favorite Drush-teams of Vasily Ustinov.
  10. The guys from DrupalSPB.org conducted a regular mitap (see the presentations on the pages of reports) and Global Training Day , for which they have great respect!


But, of course, the lion's share of information is formed by the world community. Everything below is in English. But even if you are not strong in English, do not worry: the drupaler will always understand the drupaler!
')

Drupal lite


Drupal Lite is not a fork of Drupal (at least for now), but our rubric for beginners.

  1. Drupal 7.37 has been released. Among the changes you can note the appeared folder sites/all/libraries , as well as the ability to use underscores in the list of allowed tags for your filters.
  2. Choosing the right module is not such a simple thing, especially for beginners. Useful tips for how, what, where, and why are presented in a series of articles on Selecting Drupal Modules: What Do You Need? , ( II , III ). By the way, kalabro wrote about it two years ago, and also in three parts ( I , II , III ).
  3. Working with regular procedures (Cron) will become clearer after reading the article Creating custom cron tasks in Drupal 7 .
  4. A guide to using Dreditor - an extension for your browser that improves work with Drupal.org.
  5. Great work on multilingualism: How Drupal Does Multilingual . It is better to spend the day once and figure it out, believe our bitter experience. For dessert, note Drupal 7 Total Language Fallback , as well as the module Select translation , which is used to filter materials in Views by language.
  6. The results of the Views module can be easily represented as JSON using the Services module.


All for Drupal developer


  1. Video from DrupalCon Los Angeles 2015 .
    Here are a few ( 1 , 2 ) opinions that are worth seeing. Subscribers of our newsletter sent a letter with the analysis of speech Dries, the creator of Drupal.
  2. How to keep your settings.php clean and tidy, see the article “Site configuration strategy (or how to manage your settings.php files)” .
  3. In the Learning To Debug note : Stop Thinking and Look, the author discusses the correct debug and urges us to be more careful not to waste extra hours, effort, and time to cure the symptoms instead of the disease.
  4. Sometimes for debugging we need to perform a whole sequence of PHP operations, for example, load the node with ID = 1, dump it, load the node with ID = 2, etc. We have Devel> Execute PHP Code, as well as the Drush-command `drush php-eval`, but this is not convenient enough compared to normal REPL in other languages ​​(for example, Python), where the output of each line is displayed. In this regard, you may be curious about the product Drush REPL, to which a separate article is devoted.
  5. And again about search engine optimization after Mobilegeddon. In fact, everything is not so scary. A few simple modules will help you significantly improve your position.
  6. Manage Drupal using the remote control for the TV . No comment
  7. It turns out that screwing the search from Google to your Drupal 7 site is a snap .
  8. 600 SQL JOINS in one query? This is a very real situation for a large project, if you start blindly storing any data in the fields. This problem is discussed in the Drupal: Fields or Properties (or something else) article, where the author offers several solutions.
  9. A good example of how easy it is to import geodata into Drupal 7 is presented in the material From spreadsheet to citizen government with Drupal - Volume 1 - Feeds .
  10. MySQL's highload configuration has a number of nuances (for example, the choice of IO scheduler of the operating system), some of which are described in detail in the MySQL material - Setup .
  11. On some projects, there are really large databases (for CMS;> 2 GB), the import of which for testing, review and other activities can take a fair amount of time. In the article Importing huge databases faster, the question is thoroughly understood.
  12. Not the most beautiful solution, but a working one — to rotate the pictures after they are uploaded: Drupal 7 and dealing with browser cache .
  13. Governments of different countries have recently become a regular customer of Drupal sites. This happens for various reasons: cheap, open source, etc. One of the reasons is also support accessibility for people with disabilities. A series of articles Web Accessibility Tips for Developers: parts 1 and 2 will help to deal with this topic.
  14. It seems everything. Although no, what kind of digest without features? The article Features Secret Rolemageddon discusses the pitfalls in exporting rights and roles through Features.


Drupal 8


  1. Using Ajax Forms in Drupal 8 tutorial talks about creating AJAX forms.
  2. The Drupal 8 note : core javascript files for anonymous users tells about the right way to add your JS libraries to render arrays.
  3. And the third article from the same author: about a new way to add arbitrary tags to the header page.
  4. It is easy enough to add authentication and authorization to services and resources made on Drupal 8.
  5. In 8-ke, along with PHPUnit for unit testing, Simpletest still remains. Features of working with him are revealed in the material Automated Testing of Drupal 8 Modules .
  6. If you're wondering how to connect a CDN from Amazon to Drupal 8, then be sure to read the article Amazon CloudFront with Drupal 8 .
  7. Reincarnation of the Features module in Drupal 8 - with the hope that the module will now be used for its intended purpose.
  8. In Drupal 8 as many as 4 types of information . The article Creating Custom Config Entities in Drupal 8 provides a description and an example of creating one of them.


Business and community


  1. Who are we and where are we going? The Cultural Construction of Drupal is a great educational work on the Drupal community. Read and article, and comments.
  2. In the subject, you can also read the comment Dries to purchase WooMattic . In general, we can state a greater roll of Drupal in the direction of large enterprises.
  3. The article “Pantheon Acquires NodeSquirrel to Provide Free Drupal Cloud Backups for Everyone!” Presents a brief insight about Pantheon purchasing NodeSquirrel service. For the general public, this may be interesting because everyone has the opportunity to make free backups of sites in cloud.
  4. Edison Berry, the new Board Director of the Association, tells what it is .


Interesting modules


  1. Theme developer
    Sometimes it is difficult to determine which template was actually called for the rendering of an element. The Devel Themer module helps to deal with this. A separate article is devoted to the work with it.
  2. Dynamic widget for commerce line item field
    In a good way , it is incorrect to store only references to existing products in the archives of orders from online stores. Product properties may change over time, so it’s best to keep all product data in the line item of an order. The module does just that.
  3. Views exposed form layout
    The module helps to temizirovat the exposed forms of the module Views.
  4. Views list sort
    Useful for custom sorting by list field.
  5. 403 to 404
    In Drupal, the default error is 403 Access denied when unauthorized users access certain pages. In terms of security, it is sometimes better to output 404 Not Found.
  6. Mobile sliding menu
    The module allows you to use the convenient slider menu on your website so that your navigation will be mobile-friendly. The jQuery MMenu library is used . A separate article is devoted to this module.
  7. REST / JSON
    Another REST implementation, again mainly aimed at reading data.
  8. Entity Panels
    Easy replacement Panelizer from Maxim Podorov.
  9. Views String Select
    If you do not have enough of the glossary built into Views (and there it is), you should pay attention to this module.
  10. Page manager existing pages
    This module allows you to overlap existing pages in Page Manager ( article ).
  11. Safeword
    Machine name, only as a field. You can use, for example, to specify a part of the path alias, and close the access to the standard Path field so that users do not break anything.


Oleg Kot and Katya Marshalkina worked on the issue. Share with us useful articles, yours and others, in the comments or email , and subscribe to our newsletter .

PS In Drupal Planet , the format of podcasts is quite popular , but in the digest we ignore them for the time being. Does anyone listen? Worth adding, what do you think?

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


All Articles