Drupal News

Axelerant Blog: A Complete Overview of Drupal Migration & More

Main Drupal Feed - Wed, 04/28/2021 - 06:44

With the launch of Drupal 9 in June 2020, the topic of Drupal migration is fresh on everyone’s mind. We will be delving deeper into the nitty-gritty around the topic in this blog. 

Migration is the process where the content from the old site, converted into the desired format and is saved in the new site. Sometimes, migration is a simple activity of mapping the source content to the destination content types and sometimes, it is a bit more complicated.

Let's take a comprehensive look at the Drupal migration process in context to the recently launched Drupal 9, and what’s involved in migrating from different versions. Here's what we will be discussing about:

01. Drupal 7, 8, and 9

02. Migrating Then and Now

03. Drupal to Drupal Migration

04. Migration from external sources

05. What’s More?

Axelerant Blog: A Complete Overview of Drupal Migration & More

Main Drupal Feed - Wed, 04/28/2021 - 06:44

With the launch of Drupal 9 in June 2020, the topic of Drupal migration is fresh on everyone’s mind. We will be delving deeper into the nitty-gritty around the topic in this blog. 

Migration is the process where the content from the old site, converted into the desired format and is saved in the new site. Sometimes, migration is a simple activity of mapping the source content to the destination content types and sometimes, it is a bit more complicated.

Let's take a comprehensive look at the Drupal migration process in context to the recently launched Drupal 9, and what’s involved in migrating from different versions. Here's what we will be discussing about:

01. Drupal 7, 8, and 9

02. Migrating Then and Now

03. Drupal to Drupal Migration

04. Migration from external sources

05. What’s More?

Axelerant Blog: A Complete Overview of Drupal Migration & More

Main Drupal Feed - Wed, 04/28/2021 - 06:44

With the launch of Drupal 9 in June 2020, the topic of Drupal migration is fresh on everyone’s mind. We will be delving deeper into the nitty-gritty around the topic in this blog. 

Migration is the process where the content from the old site, converted into the desired format and is saved in the new site. Sometimes, migration is a simple activity of mapping the source content to the destination content types and sometimes, it is a bit more complicated.

Let's take a comprehensive look at the Drupal migration process in context to the recently launched Drupal 9, and what’s involved in migrating from different versions. Here's what we will be discussing about:

01. Drupal 7, 8, and 9

02. Migrating Then and Now

03. Drupal to Drupal Migration

04. Migration from external sources

05. What’s More?

Axelerant Blog: Using Context in Site Studio to drive Drupal Site Personalization

Main Drupal Feed - Wed, 04/28/2021 - 06:44

Personalization has started to become a common requirement for most websites. The content of a webpage needs to be personalized based on multiple criteria such as location, user preferences, personal user information, different cookies, etc. 

We will be covering the type of personalization in this document, where a single page caters to multiple audiences/user types.

The integration between the context and Site Studio module and how it helped us personalize Site Studio pages demonstrates the power of the context module.

It gives us enough details to think about its use in other major contributed modules and also possibly think about an alternative way of solving personalization problems in general (outside of Site Studio), which works end to end. Do try this with your projects and let us know your experience! 

Axelerant Blog: Using Context in Site Studio to drive Drupal Site Personalization

Main Drupal Feed - Wed, 04/28/2021 - 06:44

Personalization has started to become a common requirement for most websites. The content of a webpage needs to be personalized based on multiple criteria such as location, user preferences, personal user information, different cookies, etc. 

We will be covering the type of personalization in this document, where a single page caters to multiple audiences/user types.

The integration between the context and Site Studio module and how it helped us personalize Site Studio pages demonstrates the power of the context module.

It gives us enough details to think about its use in other major contributed modules and also possibly think about an alternative way of solving personalization problems in general (outside of Site Studio), which works end to end. Do try this with your projects and let us know your experience! 

Axelerant Blog: Using Context in Site Studio to drive Drupal Site Personalization

Main Drupal Feed - Wed, 04/28/2021 - 06:44

Personalization has started to become a common requirement for most websites. The content of a webpage needs to be personalized based on multiple criteria such as location, user preferences, personal user information, different cookies, etc. 

We will be covering the type of personalization in this document, where a single page caters to multiple audiences/user types.

The integration between the context and Site Studio module and how it helped us personalize Site Studio pages demonstrates the power of the context module.

It gives us enough details to think about its use in other major contributed modules and also possibly think about an alternative way of solving personalization problems in general (outside of Site Studio), which works end to end. Do try this with your projects and let us know your experience! 

Axelerant Blog: Adding Dynamic Values To The Menu Links In Drupal

Main Drupal Feed - Wed, 04/28/2021 - 06:44

In Drupal 8 the menu system, in comparison to Drupal 7 has become much more flexible, and the areas of functionality are now separated into different systems. 

While we were working on one of our client's projects, we came across a requirement where we had to have an admin for every country and allow them to add and edit the details. 

We decided to have the Country as a Vocabulary and the Countries as the terms in the vocabulary. The details of the Country are made available through fields in the vocabulary. Having done that, now we have every Country mapped to every Country admin. The term edit page should be made available to them as a menu link so that it’s easier to edit the details of the respective Country, as shown in the below screenshot.

This is one of the ways in which the menu-link could be altered dynamically. Other preferred methods could be to opt for hooks, commonly used  hook_menu_links_discovered_alter() for statically defined menu-links, hook_link_alter to alter the parameters for links. Here is the list of hooks the Menu API had to offer.

Axelerant Blog: Adding Dynamic Values To The Menu Links In Drupal

Main Drupal Feed - Wed, 04/28/2021 - 06:44

In Drupal 8 the menu system, in comparison to Drupal 7 has become much more flexible, and the areas of functionality are now separated into different systems. 

While we were working on one of our client's projects, we came across a requirement where we had to have an admin for every country and allow them to add and edit the details. 

We decided to have the Country as a Vocabulary and the Countries as the terms in the vocabulary. The details of the Country are made available through fields in the vocabulary. Having done that, now we have every Country mapped to every Country admin. The term edit page should be made available to them as a menu link so that it’s easier to edit the details of the respective Country, as shown in the below screenshot.

This is one of the ways in which the menu-link could be altered dynamically. Other preferred methods could be to opt for hooks, commonly used  hook_menu_links_discovered_alter() for statically defined menu-links, hook_link_alter to alter the parameters for links. Here is the list of hooks the Menu API had to offer.

Axelerant Blog: Adding Dynamic Values To The Menu Links In Drupal

Main Drupal Feed - Wed, 04/28/2021 - 06:44

In Drupal 8 the menu system, in comparison to Drupal 7 has become much more flexible, and the areas of functionality are now separated into different systems. 

While we were working on one of our client's projects, we came across a requirement where we had to have an admin for every country and allow them to add and edit the details. 

We decided to have the Country as a Vocabulary and the Countries as the terms in the vocabulary. The details of the Country are made available through fields in the vocabulary. Having done that, now we have every Country mapped to every Country admin. The term edit page should be made available to them as a menu link so that it’s easier to edit the details of the respective Country, as shown in the below screenshot.

This is one of the ways in which the menu-link could be altered dynamically. Other preferred methods could be to opt for hooks, commonly used  hook_menu_links_discovered_alter() for statically defined menu-links, hook_link_alter to alter the parameters for links. Here is the list of hooks the Menu API had to offer.

hussainweb.me: A Drupal Developer’s Tech Stack… continued

Main Drupal Feed - Wed, 04/28/2021 - 03:59
Just as I published yesterday's article on the tech stack, I realized that I missed a few important things. I had said that the list was only a start, so I think it is fitting to continue it today. As such, today's post won't be as long as yesterday's or even as long as my usual posts. I should also add a caveat that today's post won't make the list complete. With the industry how it is and the requirement of constantly learning, I don't think such posts stand the test of time; not from a completeness perspective in any case.

hussainweb.me: A Drupal Developer’s Tech Stack… continued

Main Drupal Feed - Wed, 04/28/2021 - 03:59
Just as I published yesterday's article on the tech stack, I realized that I missed a few important things. I had said that the list was only a start, so I think it is fitting to continue it today. As such, today's post won't be as long as yesterday's or even as long as my usual posts. I should also add a caveat that today's post won't make the list complete. With the industry how it is and the requirement of constantly learning, I don't think such posts stand the test of time; not from a completeness perspective in any case.

hussainweb.me: A Drupal Developer’s Tech Stack… continued

Main Drupal Feed - Wed, 04/28/2021 - 03:59
Just as I published yesterday's article on the tech stack, I realized that I missed a few important things. I had said that the list was only a start, so I think it is fitting to continue it today. As such, today's post won't be as long as yesterday's or even as long as my usual posts. I should also add a caveat that today's post won't make the list complete. With the industry how it is and the requirement of constantly learning, I don't think such posts stand the test of time; not from a completeness perspective in any case.

Brian Perry: Configuring Tugboat Live Previews For Drupal General Projects

Main Drupal Feed - Tue, 04/27/2021 - 18:23

I've written previously about my excitement that Tugboat now offers live previews for core and contrib merge requests on Drupal.org, so I was especially happy to see live previews added to the Generic Drupal Web Components (GDWC) project recently.

GDWC is a general project on Drupal.org and runs using NodeJS rather than PHP. Since Tugboat runs on Docker it seemed likely that we could also run Node, but the existing documentation is unsurprisingly focused on Drupal PHP projects.

Brian Perry: Configuring Tugboat Live Previews For Drupal General Projects

Main Drupal Feed - Tue, 04/27/2021 - 18:23

I've written previously about my excitement that Tugboat now offers live previews for core and contrib merge requests on Drupal.org, so I was especially happy to see live previews added to the Generic Drupal Web Components (GDWC) project recently.

GDWC is a general project on Drupal.org and runs using NodeJS rather than PHP. Since Tugboat runs on Docker it seemed likely that we could also run Node, but the existing documentation is unsurprisingly focused on Drupal PHP projects.

Brian Perry: Configuring Tugboat Live Previews For Drupal General Projects

Main Drupal Feed - Tue, 04/27/2021 - 18:23

I've written previously about my excitement that Tugboat now offers live previews for core and contrib merge requests on Drupal.org, so I was especially happy to see live previews added to the Generic Drupal Web Components (GDWC) project recently.

GDWC is a general project on Drupal.org and runs using NodeJS rather than PHP. Since Tugboat runs on Docker it seemed likely that we could also run Node, but the existing documentation is unsurprisingly focused on Drupal PHP projects.

Ben's SEO Blog: Enable Clean URLs

Main Drupal Feed - Tue, 04/27/2021 - 13:00
Enable Clean URLs Clean URLs allow search engines a way to see what a page is about before they even crawl the page. Ensuring your URLs are human (and search engine) readable is a good start to "SEOing" your website.

Ben's SEO Blog: Enable Clean URLs

Main Drupal Feed - Tue, 04/27/2021 - 13:00
Enable Clean URLs Clean URLs allow search engines a way to see what a page is about before they even crawl the page. Ensuring your URLs are human (and search engine) readable is a good start to "SEOing" your website.

Ben's SEO Blog: Enable Clean URLs

Main Drupal Feed - Tue, 04/27/2021 - 13:00
Enable Clean URLs Clean URLs allow search engines a way to see what a page is about before they even crawl the page. Ensuring your URLs are human (and search engine) readable is a good start to "SEOing" your website.

Pages