Categories
CMS Drupal Mastering Development

Draw line between markers of same type with Geolocation

Is there a way to draw lines between related nodes with the Geolocation module? So lets say I have 9 nodes by using taxonomy terms they are separated in 3 groups of 3. Now I want to draw lines between the items in the same group on my Google Maps map (created with the Geolocation […]

Categories
CMS Drupal Mastering Development

Nested sidebar module [closed]

Is there a Drupal module that will display a sidebar like the one on https://vulkan-tutorial.com? I have a website that has a lot of content that is nested like a textbook or legal codex. Think chapter, section, subsection, sub-subsection, etc. I’d like to be able to display this neatly as a sidebar. Key features include […]

Categories
CMS Drupal Mastering Development

Drupal Cache Size issue

After we deployed our website to production, the number of users is big, so the cache size is also too big (30 GB); I believe its created per user per page. Our website for now only contains public sections, so no need to cache it per user per page. My question is that if there […]

Categories
CMS Drupal Mastering Development

Transfer Drupal 7 users to Drupal 8 while retaining passwords

I’m transferring 10K users from Drupal 7 to Drupal 8. I want to retain passwords. What I’m trying is dump user records from Drupal 7 as a CSV file dump hashed passwords from MySQL as a CSV file load user records and hashed passwords into a custom program in the program, add hashed passwords to […]

Categories
CMS Drupal Mastering Development

TypeError: $element[response.method] is undefined in Media Library Form API Element module. How to create custom field image media d8?

When I insert selected image, there is an error show in command TypeError: $element[response.method] is undefined ajax:618) How to create custom field image media?

Categories
CMS Drupal Mastering Development

How can I accurately determine when a customer is on the “Review” step in Commerce?

I’ve created a custom checkout pane by extending Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneBase and added it to the “Order information” step in a checkout flow. This accepts customer data. The customer then progresses to the “Review” stage to confirm everything is correct. The customer can “Edit” their information if required, going back to the “Order information” step. Within the […]

Categories
CMS Drupal Mastering Development

Fix for “‘csrf_token’ URL query argument is invalid” error during logout

I am creating a set of API endpoints for a mobile app using Rest. For User authentication, I am using the default API endpoints supplied by Drupal. That would be /user/logout?_format=json&token=<logout_token obtained from login api response.> I wanted to remove the _format=json from the URL parameter and so I created a custom route with the […]

Categories
CMS Drupal Mastering Development

How can I determine which module is associated with a field plugin?

I’d like to implement an entity hook, and act on all fields defined by Computed Field FieldType plugins. So I either need a list of all FieldType plugins provided by the module or need to know which fields are associated with it in order to know which fields to work on (or avoid). Is this […]

Categories
CMS Drupal Mastering Development

Set site root page to a landing page instead of user login

I’m using a custom bootstrap 3 theme as my default theme which sets the user_login page. When I go to the root of my site, this is the page that appears. How do I change the root of my site to display a page other than user_login? Specifically, we are trying to add a landing […]

Categories
CMS Drupal Mastering Development

Auuopopulate a content type with user information

I have a custom content type. I have created users using Add users. I need to create a page with a search box for the username. After selecting the username, I need to be directed to the content type with user data auto-populated. The user data is already added with Add user. How do I […]