Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Unanswered Questions

23,835 questions with no upvoted or accepted answers
16
votes
0answers
896 views

How do I setup Chained fast backend, Varnish, APCu and Redis cache bins in settings.php?

On a Debian Jessie server (Nginx, PHP 5.6, Zend Opcache), I installed Apcu, Redis, Varnish. I also installed APCu, Chained fast backend, Redis and Varnish modules. In order to make these caching ...
9
votes
1answer
457 views

How do I go about migrating books using MIgrate_D2D?

I've had to rebuild my sites recently due to a hit on the Drupalgeddon bug I thought I closed. I've been trying to migrate everything in easily but it doesn't seem to want to for whatever reason. Now,...
9
votes
2answers
1k views

LIKE clause not working in hook query alter

I'm trying to replace the default search with a LIKE clause in Drupal 7. I tried to alter the query according to Adding an OR condition to an existing query: function MYMODULE_query_node_access_alter(...
8
votes
1answer
310 views

$promotion->apply($order) doesn't work in commerce v2.0-rc1

I have a redemption form that I want to enter a coupon code and then an order should be created automatically, then the coupon code applied to the order as well. The order gets created successfully ...
8
votes
1answer
2k views

What is the equivalent of hook_translated_menu_link_alter() to Alter a menu link?

I want to alter the menu link in Drupal 8. In Drupal 7 we can achieve this using hook_translated_menu_link_alter function module_translated_menu_link_alter(&$item, $map) { global $user; if (!...
8
votes
1answer
504 views

With search_api_solr, how can I apply an significant field based boost when using solr 6.x?

I am using the solr backend for search_api on a drupal 8 site. I have added the value of a taxonomy term reference field (field_promoted_search) to the index. If an item of content has ...
7
votes
2answers
207 views

Big pipe and behaviors context

I have problem with drupal behaviors and context in combination with big pipe. It seems like context variable sometimes contains same part of page. I have tried: (function ($, Drupal) { Drupal....
7
votes
1answer
136 views

Is it possible to migrate data into multiple translations of entities?

I'm running a multilingual migration of events (which are stored as nodes) that have keywords on them where there are keywords (stored as terms). The keywords should be stored in a multilingual tags ...
7
votes
4answers
492 views

How to synchronize roles between drupal sites?

I've set up a multi-site Drupal installation. The main site is example.com and we also have a.example.com and b.example.com. I own example.com, and I rent a.example.com out to Person A, and b.example....
7
votes
2answers
1k views

Context taxonomy term

I have a context set up: Condition > taxonomy term > vocabulary. Reaction > some blocks displayed somewhere This works ok for path like taxonomy/term/term_id but it doesn't work for ...
7
votes
1answer
458 views

Order list: Pay unpaid invoices

I have created some extra statuses: Paid and Unpaid. Now they got the functionality and react on the transaction balance perfectly fine. However, on the user site, it is kind of a dumb thing. Even ...
7
votes
3answers
1k views

How to use URL parameter and page callbacks for tab menus correctly?

I'm using Drupal 6 and I'm trying to display two tab (menus) on a page that has the URL /vehicle_info. Both pages that the tabs link to should take a node's nid as parameter. My current code looks as ...
6
votes
1answer
161 views

Managing custom aliases on translated content

We have a Drupal 8 site with translated content, and using the Pathauto module. The issue we are running into is that when we un-check the "Generate automatic URL alias" on, say, the Chinese node, ...
6
votes
1answer
658 views

How to add an entity reference field value on Behat Test

My Behat test starts like this: @api Scenario: Testing user Given users: | name | pass | mail | status | roles | field_lines_ref | | test | test | t@t.com | 1 | Tester | Line Name ...
6
votes
0answers
2k views

getvalue() of multiple values field return only the first value

I added a new field in the field manage user page. This is a sample integer multivalue field. (we can enter several integer) I edited the profile of the admin user. I added (and save) some values in ...

15 30 50 per page