nodeJS Serving Sitemap.xml from Headless Drupal to NodeJS/Express Server Implementing API in Drupal 8 is quite easy when we are going into headless mode. But implementing sitemap.xml and robots.txt is quite challenging. Since both systems are disconneted and altering API to serve these data is super expensive. Here is a quick
Technology Clear Drupal cache Drupal stores the site data in cache table so a to improve performance. It speeds up the page load time as the query requests to database tables are minimized, but
Drupal SOLVED: Recoverable fatal error: Argument 2 passed to Symfony\Component\Routing\Route::__construct() must be of the type array, null given in Drupal 8 I got the following error while trying to install a new custom module Recoverable fatal error: Argument 2 passed to Symfony\Component\Routing\Route::__construct() must be of the type
Drupal Create custom module in Drupal 8 I wanted to create a module named "my_module" which list out a simple form, I achieved this in drupal 8 with the following steps Create a folder
Drupal Reset user password in Drupal 8 If you are unable to login to your drupal 8 site then reset the password for your user using the following steps In your Drupal root folder execute the following
Technology Custom form in Drupal 8 Suppose you have a custom module called my_module in which you want to create the form. Step 1: Intially we will need to add the menu for form in
Technology Drupal 8 - How to render a block programatically If you have a requirement to display a block in your custom page or form in drupal 8 it can be accomplished using block entity objects. First you need to
Drupal Drupal 8 - How to load node object from URL alias Here is a quick snippet which helps to load the node object based on the URL alias. //Your custom URL (alias). $my_url_alias = 'about-me'; // This line will return corresponding
Drupal Drupal 8 - Token Replacement in Rest Resource Endpoint One of the most important point while creating custom REST resource endpoint in Drupal 8 is to use the native functions properly. Did you try for a token replacement and
Drupal Personalization with Drupal Here I will answer the below questions about personalization with Drupal. What is personalization ? Is personalization possible with Drupal ? How it can implement for anonymous users ? Will it affect the
Drupal Drupal 8 - No 'Access-Control-Allow-Origin' header is present on the requested resource Trying to set up an app with headless Drupal 8 and blocked with the below error ? No 'Access-Control-Allow-Origin' header is present on the requested resource This is happening since you
Drupal Drupal 7 : How to create custom entity Define custom entity Entity API provides hooks to extend and add new entities. There are lot of options available in this hook, but for now we will consider only the
Drupal Drupal - Important and handy drush commands Drush provides useful commands to perform various activities on drupal sites, these commands are handy and help us to complete the tasks from command line. Following are few of the drush commands which will be useful for daily activities git en {my_module} : Helps
Drupal How to exclude page sections from being translated by google translate Do you have google translate enabled in your site? Are you trying to customize the page contents for translation? Google provides two classes "notranslate" and "translate" so that we can customize the page based on our requirements. You can add
Drupal Drupal - How to show/hide block based on dynamic condition I had a unique requirement to show a block on the page only if the page url has arguments, after much of research I found out the following method to customize the block. In admin->structure blocks restrict your block for the required
Drupal Drupal - How to enable google translate With the expanding economies all over the globe translation has become the key factor to draw attention of consumers spread across the world. Google provides services to translate the entire website over 100 languages. If you are looking at translating your drupal website to
Drupal Important notes for multi sites in Drupal Use multisite concept over Domain Access Many a times we tend to go with Domain access as there are few sites initially, but keep in mind that markets grow and in future you might be required to handled 30-40 sites in Drupal. At such
Technology How to exclude specific pages from Apache solr search While using search intergrations in site, we may need to customize the search results based on the market requirement. We had a similar requirement where pages like contact us, privacy
Technology How to alter drupal views query Many a times when we are working with drupal views there comes situations when you need to alter query based on dynamic conditions, at such times drupal hook_views query
Drupal Drupal - How to download and enable a module in single command using drush As developers we tend to find the quickest way to get things done, if you are also trying to find quick way to download and enable module in drupal then read on ... Normally we use the following commands for downloading and enabling module drush
Technology Drupal 8 : How to enable SQL query for views Drupal provides a variety of options for users to interact with the CMS, one way is displaying queries for views. You can enable query in the view page by the following steps Goto "Admin > Structure > views" Click on the "
Technology How to put your Drupal 8 site in maintenance mode Follow the below steps to enable maintenance mode in drupal 8 site Click on the Manage adminstrative menu Goto Configuration > Development > Maintenance Mode Check "Put site into maintenance mode" checkbox Add the Message to be displayed to user while putting
Drupal Fortune 500 companies and popular organizations that use Drupal for their corporate websites NASA The National Aeronautics and Space Administration is an independent agency of the executive branch of the United States federal government responsible for the civilian space program, as well as