Category: Drupal

  • WordPress to Drupal 9 Migration.

    WordPress to Drupal 9 Migration.

    WordPress to Drupal9 migration is not an easy task. Because It has installed multiple modules, many of which were incompatible modules. The modules that must be installed are listed below. Check that you have Drupal 9 compatible modules installed. DRUSH is another program that you must have installed. Modules: Install and then enable modules. Composer […]

  • Drupal vs WordPress

    Drupal vs WordPress

    Drupal and WordPress are content management systems (CMS) to build and maintain websites. Although the two platforms have a lot in common, there are some significant differences between them. Drupal Drupal is a popular and powerful content management system. Complex websites are developed with the advanced functionalities of Drupal. WordPress WordPress, a popular user-friendly content […]

  • Drupal color switcher implementation.

    Drupal color switcher implementation.

    As a requirement in Drupal, one of our clients told us to implement a Drupal color-switcher option. So, when we searched, we found a module named ‘Style Switcher’. We installed this module using Composer. After login to the Drupal dashboard, configuration > User Interface > Style switcher. From here, you can add a new style. […]

  • How to integrate Google Data Table in Drupal custom page.

    How to integrate Google Data Table in Drupal custom page.

    Our requirement is a teacher can update the assessments of each student. Sreyas implemented this requirement by integrating the Google Data Table in the Drupal custom page.

  • BlueSnap Payment Gateway Implementation

    BlueSnap Payment Gateway Implementation

    BlueSnap Payment Gateway implementation as a custom module in Drupal is explained in the post. BlueSnap is a global payment gateway that supports credit and debit card payments, ACH/ECP, SEPA Direct Debit, digital wallets, and Paypal. Its Payment API is RESTful and uses standard HTTP features. Bluesnap API supports automatic recurring subscriptions and we utilize […]

  • Load taxonomy terms in alphabetical order in drupal 7

    Load taxonomy terms in alphabetical order in drupal 7

    The code below shows how to load taxonomy terms in alphabetical order in Drupal 7. Getting all child terms in Drupal 7 vocabulary try the code. $cc=array(); $tax=taxonomy_vocabulary_machine_name_load($name); $vid= $tax->vid; $child_terms = taxonomy_get_tree($vid); foreach($child_terms as $values) { $tname=$values->name; $cc[] = $tname; }

  • Drupal 7 | Delete Field Collection Data In A Particular Content Type.

    Drupal 7 | Delete Field Collection Data In A Particular Content Type.

    We have a content-type basic page in Drupal that has a date field. We use this code in a custom module to delete field collection data in Drupal 7. At Sreyas, we are well-resourced with Drupal developers who have vast experience in developing an application in the latest version of Drupal. Apart from Drupal development, […]

  • How to render taxonomy in page template in Drupal 7

    How to render taxonomy in page template in Drupal 7

    Display taxonomy terms in a page template in Drupal using multiple methods. The easiest way to solve an issue is to let it deal with by experts. We can provide a wide range of web services. Get in touch with us to know more. $vocabulary= taxonomy_vocabulary_machine_name_load(‘vocobulary_name’); if ($terms = taxonomy_get_tree($vocabulary->vid)) { foreach ($terms as $term) { $term_name = […]

  • Creation and Remove custom form fields using ajax in Drupal 8

    Creation and Remove custom form fields using ajax in Drupal 8

    Below given is the code for the creation and removal of the custom form field using Ajax in Drupal 8. public function buildForm(array $form, FormStateInterface $form_state) { $form[‘#tree’] = true; $form[‘#prefix’] = ‘ ‘; $form[‘#suffix’] = ”; $form[‘#cache’] = [‘max-age’ => 0]; $nb_sponsee = $form_state->get(‘nb_sponsee’); $form[‘sponsees’] = [ ‘#type’ => ‘container’, ‘#prefix’ => ‘ ‘, […]

  • How to add external/internal files to the Drupal 8 theme

    How to add external/internal files to the Drupal 8 theme

    This page explains how to add an external/internal style sheet or javascript file into the Drupal 8 theme. Use the below code in THEME_NAME.libraries.yml global-styling: css: theme: css/style.css: {} ‘https://fonts.googleapis.com/css?family=Fira+Sans:300,400,500,700’: { type: external } # lib: # lib/mulihu-scrollbar/jquery.mCustomScrollbar.css: {} version: VERSION js: js/owl.carousel.min.js: {} # lib/mulihu-scrollbar/jquery.mCustomScrollbar.concat.min.js: {} dependencies: – core/jquery – core/drupal