To render a block, a few methods are used. One way to render is to use block_load() function. In order to render a block, the following syntax is used,
Moodle is a Free and Open-Source Software (FOSS) learning management system written in PHP. Drupal is also an Open-Source CMS. We require to integrate Moodle and Drupal with a single login system. For that, I have followed the steps mentioned below. Changes to be done in the Drupal site:
Drupal is a scalable and secure content management framework which help organizations build their digital platforms. In this article I am presenting a situation where Drupal helped implement a feature for one of our client, without affecting the site's scalability and secure nature. The client’s site went down to maintenance mode for some users unexpectedly. This happens very rarely and there was no immediate visible reason that could point to the cause of it. So it was imperative that we log when the site goes offline in order to debug the issue.
For one of my project, I have implemented the Chosen module to display a list of content in a select box with user-friendly option style. I used the following configurations:
[SOLVED][Drupal Commerce] Is there a Functionality Similar to UberCart Test_Gateway for Drupal Commerce?
Many Drupal users wanted to know if there was a functionality similar to UberCart test_gateway for Drupal Commerce for emulating the collection of credit cards. If you are faced with the same question while running Drupal Commerce on your Drupal site then read on to know the possible solutions.
Authors: Adrian McDonald Tariang, Anish M.M. Drupal 8 Render Pipeline is the sequence of steps through which Drupal 8 generates a response to an HTTP request. ie, it’s what’s going on under the hood of Drupal 8.
Personalization is at the core of a customer portal. Customer portals offer a handful of personalization options to portal administrators. This include personalization of the content, communication, user experience etc. The better the personalization we deliver, the more effective will be the customer loyalty built. This also influences the purchase behaviour of a customer.
Media companies on a daily basis create, manage and publish huge volumes of digital files or assets. These digital assets which include images, audios, videos, graphics, documentation etc need to be properly managed. Digital Asset Management (DAM) systems are solutions to store, organize, locate, retrieve and share these digital files. The management of these assets include workflows, complex asset access controls, preset standardizations, storage specifications.
By using Views Slideshow module we could simplify the procedure of developing a slideshow in Drupal. As per the requirement I have found one feature lacking, i.e, a full screen option. I like to introduce a script that would turn slideshow images to the size of browser window. That is, it would turn image or html element to the measure of view port maintaining the content quality. This would be useful for setting an image as background of a page, so that entire viewing area would be covered.
[Drupal] How to Programmatically Uncheck 'Generate Automatic url Alias' Option for a Specific Node Editing form in Drupal 7?
In one of my works, I want to programmatically uncheck the checkbox option of 'Generate automatic URL alias' for a specific node editing form. For this, I have created the following form alter for the content type. I have added a custom after-build function for the necessary content type in the form alter.
Docker is an open source platform for system administrators and developers to build, ship and to run distributed applications, whether its on the cloud, data center VMs, or on the laptops. Docker helps to automate the deployment of Linux applications inside software containers.
Everyone knows Drush is a very important tool in Drupal development, to execute things faster and to manage Drupal websites remotely. Drupal specifically built its shell function to update its configurations, managing modules, running drupal updates, etc.
When I planned to use media upload in CKeditor for uploading files to the site, I faced one problem, i.e. I could use only predefined image style as a preset to style my image. I wanted to use a custom preset to media upload. To achieve that we have to do some customization. Add the following custom code in our custom module.
While setting up local environments for Drupal 8, everyone may find difficulty in login to the site, if the password is unknown In Drupal core there is a script file that return the hashed password, which is core/scripts/password-hash.sh. Run the following command to get the hashed string for '123' in the terminal. ./core/scripts/password-hash.sh 123 Update the returned string in the password field in the user's table for required users via command line or any MySQL (or any database systems like PostgreSQL, MariaDB, MongoDB) GUI tools.
Drupal scores better than most platforms for Online Marketing success. For a large part of the online marketing community, this might sound cynical owing to popular Drupal myths. However, Drupal is one of the most powerful content management platforms enjoying a high ranking. Drupal SEO-friendly features help websites achieve better ratings on the search engine for the same kind of content. On the periphery, Drupal does this through several inbuilt features:
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.
You can create your custom color box styles instead of using a plugin provided styles. For creating custom color box style go to /sites/all/modules/contrib/color box/styles copy any one of the folders. (You can find plain, default, and Stockholm syndrome styles there).Place the copied folder into your theme folder. Rename the folder with your custom name. Also, rename the CSS and js files.
Drupal 8 was released on Nov 19th, 2015. Though Drupal 6 end of life was declared on February 24th, 2016, there are still over 84,845 Drupal 6 websites on the web. What does end of Life Mean for Drupal 6? As per Drupal 6 end of life, the security team will no longer provide support or security advisories for Drupal 6 and the core of Drupal 6 will no longer receive community support.
In one of my project I want to create user roles programmatically and the role should be enable and disable while module install and uninstall process. So first of all I need to create a YAML file based on the user role name with necessary definitions. The name of the YAML file should be the format user.role.sample.yml. Here sample is my user role id. To make the role enable and disable while module installation and uninstall we have to add dependency with enforced property.
You might be getting the most from your Drupal 6 website, but with versions 7 and 8 already on full gear, you might hurt your web presence sooner than later. Drupal 7 And 8 Offerings You Cannot Disregard It’s time to make a planned move to a more recent Drupal version now. Some of the features that make Drupal 8 move worthwhile include: Better Content Management Experience The content management experience is even more flexible and efficient with in place editing and advanced image handling.