All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
555 views

How do I change order of completion rules in checkout?

How do I change the order in which completion rules fire? There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it's never executed. I see no ...
0
votes
1answer
14 views

Callback to Drupal after curl call to 3rd party site doesn't resume authenticated session

Situation: An authenticated user on my site selects items to purchase and clicks PAY. My site makes a curl call (see below) to a 3rd party credit card site (CASHNet). The credit card site handles the ...
0
votes
1answer
7 views

In Drupal 8, how do you get the user account status (active or blocked) in a THEME_preprocess_user function?

Tried the following with no luck function MyThemeName_preprocess_user(&$variables) { $user = $variables['user']; $variables['status'] = $user->status(); } function MyThemeName_preprocess_user(&...
0
votes
1answer
645 views

How to create a parent content type which consists of other child content types?

I want to create custom content type (parent) which consists of other custom content types (children). Is this feasible in Drupal 8? Or I should do it programmatically? Example: I want to have custom ...
3
votes
2answers
690 views

Trigger Emails/Handlers on Webform submissions update

Is there a way to trigger the Emails/Handlers, When webform submission has been updated. I'm using webform_mailchimp as a handler. When I'm submitting a new record, handler is working fine and I can ...
0
votes
1answer
421 views

Google Maps directions link icon

I would like to know how to embed a Google map on a page, so that the the "directions" icon is showing. I had previously used the Simple Gmap module, but it doesn't provide the icon which I need.
0
votes
0answers
55 views

Custom javascript runs before block loaded

I have two jQuery calls to modify two divs on a page. One works, the other attempts to work, but the block is lazy loaded, likely using BigPipe. This helpful doc page is what I'm referring because it ...
1
vote
4answers
3k views

Use HTML tags inside rows of a table in a render array

I'm creating a table within a render array. I can easily create rows within the table like so $rows = [ 'test 1', 'test 2', 'test 3', ]; $header = [ 'header 1', 'header 2', '...
0
votes
0answers
12 views

Upgrade from drupal 8 to drupal 9 via composer

I am currently trying to upgrade my site from drupal 8.9 to drupal 9. I ran these commands to give permissions: $ chmod 777 web/sites/default $ find web/sites/default -name "*settings.php" -...
0
votes
0answers
6 views

Can't log in as admin

Someone let us know about an error on our site. I logged in (as an admin). I was able to move the site to maintenance mode and then went through the steps to clear the cache on the site. Once I did ...
0
votes
1answer
500 views

Suddenly unable to add a field to a new content type

When editing a content type I was going to add a simple boolean field to an existing content type. When attempting to add the new field Drupal threw an error. After a few more attempts to add a field ...
1
vote
0answers
11 views

How to configure Search API and stemming to work correctly?

I'm using the Search API module with the database server, matching for whole words only. From my understanding Search API comes with Porter 2 stemming built-in ("packing" stemmed to "...
0
votes
2answers
525 views

How to stop redirecting to newest URL after updating a node

I have setup 2 aliases for each node of a content type called "property". The first alias is like example.com/texas/village-apartments and the second is example.com/texas/corp/village-apartments. ...
0
votes
0answers
5 views

Issues trying to understand and debug simplesamlphp error

Simplesamlphp used to work on the site. Something changed and now it does not. The IDP remote config has been verified, including the cert The SP cert and pem in the simplesamlphp/config folder have ...
0
votes
0answers
7 views

Display feed of two or more entity types in a single view (e.g. node & comments)

I'd like to create a Views Block that displays the latest nodes and comments in a format like: User 1 posted [ContentType]: [NodeTitle] in [Term] 10 minutes ago User 4 posted comment on [Node:Title] ...
0
votes
1answer
16 views

Is it possible to link images to different URLs?

Using View's module it is possible to create a page to display some content horizontally. I have done this using carousel feature. The content type that these contents belong to have an image_field ...
1
vote
2answers
608 views

How to rollback jQuery Update module?

I accidentally update jQuery version from 1.5.2 to 1.82 using Drupal's jQuery update module. Is there any way to rollback the update and go back to my 1.5.2 version? Changing the option exists only ...
0
votes
1answer
10 views

Custom ordering flow

I was wondering if it's possible to replace the default commerce flow with my own custom flow. As far as I know the default flow is following: Add individual products to cart on Product's detail page ...
-2
votes
1answer
50 views

Why doesnt my migration plugin run?

I made a plugin to add the alias to my node migration, using the instructions here https://www.calebthorne.com/blog/drupal/2016/07/16/drupal-8-migrate-pathauto but i tried to put a drush break point ...
2
votes
1answer
31 views

How to limit the terms of the view to the terms used?

On the product I created a "tags" taxonomy terms field. I have created a hundred "tags". My products use around 10 "tags". I created a pageview of my products with an ...
0
votes
1answer
77 views
+150

Why does step 2 in migrating files to media fail?

I am doing a migration as per this example https://www.drupal.org/project/migrate_file_to_media/issues/3118471. Migration and step 1 work fine, I get this error when running step 2. I also tried ...
1
vote
1answer
886 views

Regions do not display in “Demonstrate block regions”

I wonder why some regions of my theme don't display in section 'Demonstrate block rerions'. This happens with some themes which I downloaded from Drupal.org, for example with the Software theme. Here ...
0
votes
0answers
9 views

Autocomplete submit on selection of suggestion

How to make an autocomplete submit on selection of suggestion for an exposed form in views ? The scenario is as follows: the user types two letters, the suggestions appear, when he clicks on a ...
1
vote
1answer
521 views

Display message instead of redirecting to Access Denied page

I'm using Commerce Auction module for an auction site. I want to display a message when the auction time out occurs for a certain product and at the same moment the user clicks on place bid tab. ...
1
vote
1answer
179 views

Using Composer in a multisite installation

How do I manage modules via composer in a multisite architecture? For example, if I want one site to have version 2.3 of a module, and another to have version 2.4, how do I do this? Do I have a ...
0
votes
0answers
29 views

Is there a way to change how a form button looks?

I know how to add a class to a form element and how to add a form submission button, but there are classes that are automatically added to these buttons in my Drupal 8 install. The form I am editing ...
2
votes
1answer
610 views

Conditional fields not working with hierarchical select module

Case: I am using the Hierarchical Select module for allowing users to choose taxonomy terms from a particular vocabulary. Based on the chosen terms (deepest level), I want to display a field using the ...
0
votes
0answers
29 views

How can I make views exposed filter case-sensitive?

When I use the exposed filter, if I search for "IMAG" all results showing image show up. Is there a way to have the exposed filter search case sensitive? UPDATE I added a screenshot to ...
0
votes
0answers
9 views

Entity reference field autocomplete in paragraph bundle fails

In drupal 7 I have a content type with an included paragraph bundle which is an autocomplete entity reference field. The field has an entity selection mode of Views: filter by entity reference view, ...
2
votes
0answers
18 views

How do you reliably create a GraphQL/Twig theme as a subtheme?

Our theme is built with GraphQL Twig and it's working great. We need to build a subtheme for a different website based on this theme. We're not really having a problem overriding simple Atoms ...
0
votes
1answer
485 views

Hide the “view exposed filter” form or reload the page after submit the form?

I am using view exposed filter on a view display as "block". The block is added to dashboard. I added a second function to "Apply" button using hook_form_alter. I want to hide the expose form of view ...
1
vote
1answer
342 views

How can I update webform_submission uid in the table, after which the anonymous user has registered?

I'm a graphic design, and I just started using Drupal 7. I have a form created with webform, which collects data entered by the user, after sending, the user is directed to the purchase page. The ...
0
votes
1answer
553 views

hook_views_pre_render -> how to access variables

I have a view of teasers, and would like to check the status of each node. Using hook_views_pre_render (in the template.php file of the theme), I can access: $view->style_plugin->row_plugin ...
0
votes
0answers
17 views

How to change my Accordion behaviour [closed]

I am trying to modify the Accordion behavior on an existing Drupal site (Drupal 7.73 with CiviCRM). The Drupal site with the accordions is using the Drupal module Webform to create and edit fieldsets ...
-2
votes
1answer
18 views

How do I add/remove a user role based on subscription?

I have a product "Membership" that is set up as a subscription. When a user purchases this "Membership" I would like to assign them a "Member" role. How do I do this? I ...
0
votes
1answer
469 views

Views : Output the field as link - not showing the field properties properly

I want to output an image field as a link in views. I've seen many tutorials but get stuck at one point. I already added the link on top of the image field. By clicking on the image at rewrite ...
0
votes
0answers
18 views

Where does Webform store the YAML form design data?

I have looked in the database and can see the form_submission_data table but the actual form design (field names and datatypes) I can't locate. I know you can access this from the front end but I want ...
0
votes
0answers
11 views

Create and display field dynamically in Ajax

I've created a field dynamically based on a checkbox title I just clicked before, here the code : $form['myfield']['widget']['#ajax'] = [ 'callback' => 'myCallback', 'event' => 'change', '...
0
votes
1answer
159 views

Sitewide Ajax failure with http status 200

I'm not sure what's happened but I'm suddenly getting Ajax errors for every ajax call, site-wide. An example, from the views UI: An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging ...
0
votes
0answers
20 views

Live keys in settings.php [closed]

I am trying to set-up the Live keys in Drupal 8 Commerce Stripe using settings.php rather than using the UI. I am using the following code in settings.php if (getenv("...
1
vote
2answers
1k views

How can I override the search result page title dynamically?

In my Drupal 8 site, I am using the default search page. If I enter a keyword, for example article, the search result will be listed under Search result. I want to change that to Search result for ...
0
votes
2answers
825 views

Base path and user picture uploading

So I recently migrated my site between servers. I think this is causing some issue with the base path of Drupal, which in turn affects the image upload path when a user tries to upload an image to his/...
3
votes
2answers
791 views

How to use RegexConstraint with field?

I'm defining a base field for my custom content entity: $fields['machine_name'] = BaseFieldDefinition::create('string') ->setLabel(t('Machine name')) ->addConstraint('UniqueField') ->...
0
votes
1answer
901 views

Get page title form url

I have an url like this: http://drupal.dev/en/news-events It's not my current page url. How can I get the page title by using above url ?
0
votes
1answer
15 views

How do I get the term name in a custom submit handler?

In Drupal 8/9, when you create a new term, the default status message is: Created new term %term. %term contains the term name, which is linked to the term page. I want to override this and remove ...
0
votes
0answers
29 views

“Customer information #number” option appeared for sellecting shipping address?

Most likely after updating to latest version of shipping module on order information page, shipping section, drop-down for selecting existing address or creating new one now has one extra item and it'...
0
votes
1answer
738 views

How to fix “This display does not have a source for contextual filters”

I've set up a view to produce a block of content nodes based on taxonomy. I have the filter criteria to include Has Taxonomy term (not empty). Then under advanced I added a contextual filter 'Has ...
0
votes
0answers
7 views

Content list menus translation

I have a multilingual site and the content list view can be accessed like this: htttp://www.website.com/{country_code}/{language_code}/admin/content There are only two administration page languages: ...
1
vote
2answers
333 views

How to override registration form message

I should override registration form message "Registration successful. You are now logged in." with String Overrides module it does not work, because new text is long and every line with other style, ...
-4
votes
0answers
28 views

Browser caching issue [closed]

We are facing browser caching issue for few users. We have disabled Drupal application cache and we are also not using any server side caching. Still, we are facing issue. When users try to log out, ...

15 30 50 per page
1
2 3 4 5
1671