# All Questions

81,595 questions
Filter by
Sorted by
Tagged with
605 views

### Ajax error every time open view

i want to create new view but every time i make selection like user, content etc. i got this error An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /dru/...
878 views

### Block overriding with template file doesn't work

The Drupal version I'm using is v7.34. I'm using sub-theme created from Bootstrap as base theme. My problem is, I want to override the "User Login Block" and put it in the header region (top bar), so ...
975 views

### Clearing cache breaks site

I'm trying to load a production site in a dev environment using the site's codebase (core 8.3.7, contrib and custom modules and vendor folder) and the current database. After struggling a bit with it,...
559 views

### How do I overwrite a lazy service?

I'm trying to have my D8 site use Memcache for the lock service backend instead of using MySQL which is the default. In core.services.yml we have the lock defintions: lock: class: Drupal\Core\...
65 views

### Allign block content next to title - CSS

My goal is to display a button group to the right of the page title. Currently it resides in region-content, which wastes space. I tried adding my own class to the div that contains btn-group class ...
21 views

### Alternative for Code Per Node on Drupal 8

I'm looking for an alternative to the Code Per Node module on Drupal 8. I've tried Asset Injector and it has an issue that deletes all configuration files whenever the caches are cleared. Does anyone ...
634 views

### Retrieve a list of values from a lookup table using db_select

I have a "jobs" table where each job can have multiple specialties. So I have a specialties table with a list of all available specialties and I have a lookup table that just has a job_number and a ...
38 views

### Cache a block by a custom entity rendered within

I struggle with getting a custom block cached correctly: we have a custom entity "Politician" For that entity we have several routes where we want to render a "politician header" with some basic ...
599 views

### Getting a custom field to appear correctly in Rules using entity form module

I have written a custom field widget called foo which is inserted into an entity form to provide an autocomplete to another web service. I am trying to get the field data to be sent in an email via ...
831 views

### Unable to set the data property xxx as the parent data structure is not set

I currently use geofield to set latitude and longitude but rules gives me this error: 0 ms Unable to modify data "user:field-coordonnees:lon": Unable to set the data property lon as the parent data ...
12 views

### What is the proper way to show a visitor an error?

I'm using a custom submit handler for a Webform, which POSTs important form data to another API. That part works, but on occasion there may be random network errors that prevent a successful ...
2k views

### How to do “has term (with depth)” filter on field of a related field

i have a content type 'product', and two taxonomy lists 'company' and 'country'. Country list has one level of depth like: ........ state1 -city1 -city2 ........ Each product has a 'company' ...
9 views

### getting error on setup drupal 8.1.1

Notice: Trying to access array offset on value of type null in Drupal\Component\Annotation\Doctrine\DocParser->Identifier() (line 969 of core\lib\Drupal\Component\Annotation\Doctrine\DocParser.php)....
440 views

### Mathjax module does not render on edit ckeditor

I have installed mathjax module and ckeditor module, but when I try to insert math code using math button on ckeditor, the math codes does not rendered correctely, math code become hidden. Math code ...
44 views

### Render paragraph reference field in page.html.twig

In page.html.twig I want to show a paragraph reference field which contains a left and right text_field. The name of the reference field in the node is: field_intro. That field is linked to a ...
396 views

### How to display selectable variations without attributes?

With Drupal Commerce 2, each of my products have multiple variations which are unique and can be adequately described by their variation title. I can not figure out how to display a dropdown for the ...
22 views

### How to place multi view in one page?

I have two content types and I wanna place two content views in one page with different display modes. How to solve it?
677 views

### REST call using curl taking to much time. Show as progress bar

I'm getting information from a source using REST. Bellow is part of my code. Basically, there's a part where I have a for loop that can take 30 to 60 seconds to complete. It works but the user doesn't ...
24 views

### Is there a Grouped Product listing type in Drupal Commerce

I have a Magento site I would really like to migrate to Drupal Commerce. The one must-have feature is Grouped Product. A grouped product will have a base product from which the product listing will ...
1k views

### Max length of text field

How can I increase the max lenght of Tab-Title ?
732 views

### Encoding and decoding in Views

I have a view that accepts a contexual filter.When I pass a value through contextual filter like view/sometext ,it is passed directly without encoding.I need to encode it in the url and decode it ...
659 views

### How to display the profile page in Modal window

By using ctools, i am able to display a form in modal window. Now i wish to display a page(the profile page) in modal window. Below is the sample code (call by menu page callback) to display a html ...
25 views

59 views

### What would be best method to append bootrap css to non bootstrap themes but not affect layout? [closed]

I want to use Adaptive themes, I like the layout options, however, I like the Bootstrap look and feel. So I want Adaptive theme layout css with boostrap visual css basically. What would be the best ...
314 views

### Hide Block on Particular Page with Bootstrap

I have a block called 'calendar' that I display on all events pages. events* such as events/today/, events/all/ etc. A constraint that I have is that the block must be displayed on all events pages ...
238 views

### Views slideshow is not being responsive in bootstrap theme

I created 3 images. Each image size is 1300 x 600. I created content type SLIDESHOW. I added 3 contents to the SLIDESHOW. I created a views slideshows. I applied my css as below: .view-...
535 views

### Admin toolbar not displaying correctly in custom theme using bootstrap

I've created custom Drupal 8 theme using bootstrap. Everything is fine except admin toolbar. Toolbar is displaying correctly in backend but in frontend is only displays the "Manage,shortcuts, admin" ...
17 views

### Hook form alter not working for node edit form

I have a content type called landing_page. If I edit an existing node in the admin /node/31/edit and I inspect the form I see id="node-landing-page-edit-form". I can't get it to work to use ...
1k views

### Should I define all my variables in the module.settings.yml file?

With the new Configuration Management System we can create a module.settings.yml file with all the variables that we will use in our module. Now just to made a test I delete all the content inside ...
580 views

I'm having issues translating breadcrumb. Everything works, menu items, strings etc... a part from breadcrumb. I've tried hook_menu_breadcrumb_alter to reset the title with no success. How can I ...
2k views

### How do you rename the MACHINE NAME of a CONTENT-TYPE?

I have this content-type that i created titled: "Engineering". 1500 hundred nodes later management wants me to rename it : "Staff". I can easily rename the label but how do i rename the machine name? ...
22 views

### How to generate a number for Drupal Commerce SKU?

I have a site on Drupal 8 and Commerce 2.16 with a marketplace (several merchants with several stores). Each merchant can fill in the SKU field with their product variations. The problem is that the ...
11 views

### Field gets unset and fails validation in user edit form

We have a special date field that we set upon user creation when our custom user form is submitted. The user does not have to set this field themselves. We have a separate form, which is a user edit ...
3k views

### How to print the latest facebook posts?

I would like to show the two latest facebook-posts on my Drupal page. I found these two modules: https://www.drupal.org/project/facebook_pull and https://github.com/mysequel/Drupal-8-Facebook-Feed-...
573 views

### How to create a confirm popup when delete item with field collection?

I have configured a field collection field (unlimited items) for a content type and I want create a confirm popup when user delete an item. For this, i found that i can directly go and modify 2 ...
2k views

### Memcache Slowing Down Drupal

Running seige (load tester) without memcache enabled I see stats similar to this: Transactions: 560 hits Availability: 100.00 % Elapsed time: 59.42 ...
677 views

### How do I theme the contact form?

I am trying to create a contact form for users with username, email, message, and submission button, but I want to customize the structure of the form. Where do I get the structure of the form to ...
4k views

### Get the list of available services

Is there a way to get the list of the available services in Drupal 8?
8 views

### Views Grouped filters using Relationships and Allow Multiple Selection

I have a View with Grouped filters using a Relationship and allow multiple selection options, however, it does not render multiple selections results
2k views

### Custom resources: load entity by uuid

I have created a custom resource which extends the EntityResource class. This way I can use all build in functionality that Drupal core provides on the default entity resource, but I can still add ...
577 views

### Assign a node to an organic group

Programmatically assign a node to an organic group is following my previous question which I have found the solution for Drupal 7, but I am now looking for the same issue in Drupal 6. How can I ...
18 views

### Can we access paragraph field in views-view-unformatted.twig?

Is there a way to access the fields in paragraph in views-view-unformatted.twig. I want to perform checking on field of paragraph before print the row something like this {% for row in rows %} {% ...
12 views

### Views contextual filter allow multiple values not available

I'm building a view to see some webform results. I'm trying to add a contextual filter to limit results to certain values entered in a field, but the option to allow multiple values is not allowed. ...
12 views

### Form wrapper is missing when rendering indididual components on page--node--edit.html.twig template

Form wrapper is missing when rendering indididual components on page--node--edit.html.twig template Using hook_preprocess_page we are able to create variables for form like \$variables['node_form']...
638 views

### How to keep URL parameters on subsequent pages after a form is submitted?

I'm sending a referral form out to my email database and I've got it set up so that their email addresses get passed through and appended to the form URL like this: http://www.holbrooktravel.com/...

15 30 50 per page