Unanswered Questions
11
votes
2answers
693 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
3answers
1k views
How do I migrate block content from a dev to a production site?
I've finally started looking at Drupal 8 seriously and I'm particularly interested in the configuration management. I've come across something that could be a little bit problematic and that's ...
8
votes
1answer
254 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
270 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 ...
7
votes
0answers
420 views
How to emulate all the AJAX functionality when the form is rendered after an AJAX callback?
I have a Drupal form, but I am adding it to the page as the result of an AJAX callback.
I need this form to trigger a new callback. My code below:
$form['#suffix'] = '<div id="form-return-...
7
votes
6answers
752 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
535 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
937 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
2answers
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 categories ...
7
votes
5answers
2k views
Why is this Drupal services RESTful API not working?
I'm using the Services module on Drupal 7. I want to implement a service that allows me to submit a search term via AJAX and receive an array containing the top 5 nodes (node id and title) that ...
6
votes
0answers
45 views
Can the BaseFieldOverride class be used to implement hook_entity_bundle_info()?
I need to implement hook_entity_bundle_info(), and I noticed that the documentation includes a link to Finalize API for creating, overriding, and altering code-defined bundle fields. In short, that ...
6
votes
3answers
153 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
552 views
Paragraphs Module alter form field
Using the Paragraphs module in Drupal 8, I am attempting to alter the behaviour of the form fields contained within the paragraph field. This is so I can add behaviour like ajax callbacks, hide show ...
6
votes
1answer
365 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
900 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 ...