Technical Q&A

Zyxware default image3
| 2 min read
Have you ever faced problems trying to delete all the contents of a particular content type in a Drupal website? Drupal is a CMS technology and supports Drupal developers/content writers to add content. I think content writers can face problems while trying to delete content. There are two modules in Drupal that help us overcome this issue, they are:
Zyxware default image4
| 2 min read
Clearing cache is something that a Drupal developer do frequently. Here are the 4 most popular ways to clear the cache. 1.Install the devel module which adds a cache clear option for administrators. You'll find a devel block to add to a region for quick cache clearing. 2. If you install the admin menu and get a quick menu in the top left for clearing various caches in Drupal.
Zyxware default image3
| 1 min read
We can install the latest version of drupal9 using the following command. composer create-project drupal/recommended-project my_site_name_dir This will create a project in 'my_site_name_dir' and automatically execute composer install to download the latest stable version of Drupal and all its dependencies. Your 'my_site_name_dir' will contain files that should be outside of your web root and not accessible by the web server. The web root will be 'my_site_name_dir/web'.
Zyxware default image3
| 2 min read
Actually, we can't install an incompatible module with the composer and apply a compatibility patch afterward. However, since issue forks are branches it's possible to install the module using that branch.  Under the repositories section where the composer source is listed, we need to add an exclude key for our module that we're trying to install using the issue fork. In the following example trying to install an issue for the homebox module. Complete repositories key look like  this now:
Zyxware default image1
| 2 min read
  We can use loadByProperties method in the \Drupal\Core\Entity\EntityStorageInterface.it will help us to search the file entity by the given file URI: /** @var \Drupal\file\FileInterface[] $files */ $files = \Drupal::entityTypeManager() ->getStorage('file') ->loadByProperties(['uri' => $uri]); /** @var \Drupal\file\FileInterface|null $file */ $file = reset($files) ?: NULL; In some other cases if you don't know the file URI    We can use the below code to get the URI:
Zyxware default image3
| 2 min read
While working on a Drupal 8 project we suddenly encountered this error after pushing the site to the development server. This had not occurred in our local machines which caught us off guard. A little debugging on the error log revealed the cause of this Drupal message. If you encounter this error unexpectedly, the first thing you should do is to check the error log of the server which is what we did. However, if you do not have access to the error log it and if the issue is only occurring in a particular server after deployment then it is most likely to be a DB issue.
Zyxware default image2
| 3 min read
Drupal module uses a lot of functionality. Once we enable a module we add many functionalities to Drupal. Sometimes we do not want to display the functionality provided by module but we do want the functionality to work in the background. For example creating a new account is functionality that can be hidden from users. This can be done by hiding some tabs or links in Drupal. Read on to know how to hide existing menu tabs in Drupal.
Zyxware default image3
| 3 min read
Are you looking for an easy way to delete hundreds and thousands of nodes in your Drupal CMS? We all know how to delete it using the normal admin panel which forces us to select all and clicking the delete button again and again. If you are a lazy person then probably you don't like to waste your time to find some stupid script to delete all nodes. In fact there is no need to do that, since somebody had already done that. I am saying about the Devel Generate module. Yes, Devel Generate to delete nodes!