If you do please leave something for me :)
I hope you take something away...
DrupalCon Asia - 2016
- Read more about DrupalCon Asia - 2016
- Log in to post comments
Drupal - The perfect frontend for document management
A common problem with Document Management Systems (DMS) is the fact that they don’t have a very user-friendly Interface. To build one, is a complex and time consuming process. Drupal can solve this problem by integrating with any document management system and provide a more intutive user experience.
Permission persistance for new files for a particular users
Story: Setting permission for directory for a particular user
Usually what we do when we want to give permission to folder (lets say our users name is abc for this example and directory name is test):
chown -R abc test
Problem: Does not set the permission to newly created files
Solution: setting the setgid bit so that any new file's (in test) owner is also user abc
sudo chmod -R u+s test
Combined fields filter
- Read more about Combined fields filter
- Log in to post comments
What?
A combined fields filter is a filter added to views so that the users keyword will be search against multiple fields of the node
How ?
We can add and configure the filter as shown in the following images
Behat and Drupal Extension
- Read more about Behat and Drupal Extension
- Log in to post comments
Drupalextension is a integration with Behat and Mink for Drupal users to perform automated testing below is a detailed vidoe on how to use the extension and how to run implement and run automated tests against your Drupal instance
Validating Drupal Custom modules with PHPCS
- Read more about Validating Drupal Custom modules with PHPCS
- Log in to post comments
Using PHP Code Sniffer
Running coder module locally on your custom modules will be sufficient in this case (The other contributed modules will already have been validated by drupal.org)
Programatically adding taxonomy terms as a Hierachy
Problem
We can programatically add taxonomies, thats easy but adding it as a child term is the hard part
Solution
We need to fist create a validation function dedicated for the term reference filed
$form[TAG_FIELD_NAME]['#element_validate'][] = 'taxonomy_field_tags_validate';
Color coded events on your Drupal Calendar
- Read more about Color coded events on your Drupal Calendar
- Log in to post comments
First we need to install the Events calendar feature and CCK module with all dependencies (calandar, views, ...). Once the modules are installed you are ready to go