Unanswered Questions

9
votes
1answer
574 views

How to access values from earlier steps in multi-page Webform?

I'm using Webform 4. It uses Drupal's tokens, not it's own % tokens like it used to in version 3, and pretty much all what I found was about webform 3. Say I want to make multi-page subscription form....
8
votes
1answer
227 views

How do I go about migrating books from a Drupal 7 install to Drupal 7 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,...
7
votes
1answer
114 views

Prevent devel module to be installed on prod

Using the new Drupal 8 Configuration manager, how can I prevent it from installing the Devel module on certain environments? As far as I know, installing it on my local means the next time I export ...
7
votes
3answers
533 views

How to enter incomplete or partial date with date module? (Day-Month-Year / Month-Year / Year)

I have a content type A and it has a date field. I'm selecting Day-Month-Year for this date field. But not every content has a day and I want to select only Month and Year for these content. If I ...
7
votes
6answers
665 views

Comment Reply Form through Views

I think this is an interesting question, and I am wondering whether there is a possible solution to this using views. We have a comment body, using views, where we have the name, comment, picture, ...
7
votes
1answer
511 views

Query method not triggered in custom filter handler?

I'm using Views 3. I needed to create a custom Views filter that handle dates range. So I looked at example and tried to mimic the behavior and I got some trouble. It seems that when I extend my ...
7
votes
2answers
904 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 What is the best way to add an OR condition to an existing query?: function ...
7
votes
1answer
2k views

Selected Checkboxes (taxonomy) populate a new select list with values of selected boxes

* question answered: Help needed with hook_node_submit in custom module to save data * In Drupal 7, I have a custom content type. In this, there is a multi select term reference to select ...
6
votes
2answers
120 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....
6
votes
1answer
101 views

Which tables should be emptied when clearing database-stored cache manually?

Prior to D8 to clear cache manually one could truncate all tables beginning with cache_. In Drupal 8 there are still tables starting with cache_, but there's also a cachetags table. Is the advice in ...
6
votes
1answer
336 views

Insert 'select all' choice in a particular level in Taxonomy Term Reference Tree Widget

I'm using D7. And I have a big term reference tree with Term Reference Tree. There are so many terms in the tree that I'd like to put 'select all' choice in it for usability. Is it possible to put '...
6
votes
1answer
667 views

Get title of page

When I get the title on some pages, I get an empty title like Home. The code I am using in my subscriber is the following one. class HistorySubscriber implements EventSubscriberInterface { public ...
6
votes
2answers
300 views

Add custom views options

I am trying to add some custom view options. I am not even sure if what I'm trying to do is possible. Basically I want to put a custom option under the Other category. It would look like: My custom ...
6
votes
1answer
557 views

Multisteps Webform loses current page when refreshing browser

I've created a Webform with three steps. When I refresh the browser (F5) on step 1 and 2, I correctly remains in the same page. If I do the same in step three, I go back to step 2. For ALL the steps ...
6
votes
1answer
532 views

Alter entity reference autocomplete field

I have made a module to alter the way entity reference works with autcomplete fields. I have override the entity_reference_autcomplete function where i have changed the following line: $key = ...

15 30 50 per page