Implementing a solid search functionality is very important for website developers. In this blog I will discuss
- What the core search module in Drupal 8 can do
- What contributed modules we can use
- Using Solr woth Drupal 8
- Other alternatives
As you might already know Drupal 8 contains a web services layer out of the box. Therefore we can now easily create a RESTful Architecture by exposing Drupal's data to a third party application. REST stands for Representational State Transfer. It is a set of design principles for making network communication more scalable and flexible.
Test Driven Development also known as Behaviour driven development is one of the most fast developing trends for test automation. Drupal Extension is Drupal's step towards TDD. Its a lot of big words but its something very simple.
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.
A combined fields filter is a filter added to views so that the users keyword will be search against multiple fields of the node
We can add and configure the filter as shown in the following images
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
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)
We can programatically add taxonomies, thats easy but adding it as a child term is the hard part
We need to fist create a validation function dedicated for the term reference filed
$form[TAG_FIELD_NAME]['#element_validate'] = 'taxonomy_field_tags_validate';
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