Technical Q&A
| 2
min read
The SMTP module enables your Drupal CMS to use your existing SMTP based email delivery platform to send emails. This blog cover steps to configure the SMTP module for Drupal.
Technical Q&A
| 2
min read
Testing email functionality in Drupal is a common use case every developer encounters frequently. Setup a full-featured email system locally or using a 3rd party service for just testing emails may not be feasible always.
Mailhog is the best solution available for this scenario and the bonus point is that it works perfectly with Lando.
Technical Q&A
| 3
min read
"The website encountered an unexpected error. Please try again later." this is the most common error encountered by a Drupal developer. Usually, errors are logged by Drupal and the logs can be accessed from Admin->Reports->Recent log messages. But when you get "The website encountered an unexpected error. Please try again later." you cannot even access the reports dashboard.
Technical Q&A
| 2
min read
You can always create a view manually, and change the configuration one by one manually. And, all done. But, still, there is a chance of manual error. Drupal9 allows you to import-export views.
You can follow the below steps to Import and Export views
Technical Q&A
| 2
min read
In pre Drupal 8 era, the global variable $user was available every where, from you can easily get the current logged in user id. For all new version of Drupal, you should use
\Drupal::currentUser()->id()
Once you have the user id, you can use the User::load to get the user object.
Technical Q&A
| 2
min read
The Drupal Publish Content module is a simple module that provides you additional permissions to allow users to publish or unpublish content without having to give the user the ability to administer all the content on your site. This module is a lightweight solution to help you build out your content management workflow on your Drupal site.
Technical Q&A
| 2
min read
In Drupal we can use Drupal::entityQuery() & Node::loadMultiple() to load all nodes of given type
Technical Q&A
| 2
min read
As we know, all content in Drupal is treated as a node. We can load a node entity by ID, but how can one load a node based on its title? Let's check how:
It is interesting to see how Drupal improves overtime on this.
In Drupal 6, it was just node_load.
Technical Q&A
| 1
min read
Discover the steps to create a Drupal 9 Taxonomy term programmatically.
Technical Q&A
| 1
min read
Have you ever faced any difficulties while taking the backup of the Drupal site? Developers usually need to take the backup of the Drupal site during the time of the security update.