Recently Active Questions
88,144 questions
1 vote
1 answer
1k views
Cloning site and $config_directories
On my local Drupal 8 multisite environment in sites/default/settings.php I have: $config_directories['staging'] = 'sites/default/config/staging'; $config_directories = array(); Because the default ...
0 votes
1 answer
508 views
Excerpt of Search API index is cached
I'm using the search_api extension (V 8.x-1.14) with the Database search (no solr, etc.) I use the search block which is created by the search view (/search path) I want to show the highlighted ...
0 votes
1 answer
518 views
print data to twig file from custom form submit via controller
I have created a custom form, and I'm passing data to twig file from submitForm function as follows public function submitForm(array &$form, FormStateInterface $form_state) { $form_state->...
1 vote
2 answers
1k views
Redirect to Different URl on validation errors in form builder
I am using drupal 8 fapi and i have user case as below I have a form on https://example.com/landing-page and I submit the form and there are validation errors .the page should reload as https://...
1 vote
1 answer
1k views
How do I modify a custom entity delete form?
I have a custom entity (Possession) which has a non-standard edit form. The route for the edit form is the following. entity.possession.edit: path: '/individual/{individual}/possession/{possession}/...
0 votes
1 answer
605 views
How to remove default div of views block?
My html code: <div class="workList col-lg-4"> <div class="view-back"> <a href="" target="_blank">→</a> </div> <img class="img-responsive" src="<?...
1 vote
1 answer
710 views
dynamically populate a select field based on the selection in another field works only the first time
I am trying to dynamically populate a select field (chamiponship) based on the selection in another field (country). It works fine when I load the page but just the first time, the second time I ...
0 votes
1 answer
573 views
Different front page template for different domains
I have Drupal 7 installation with the Domain Access module. I need to have different page--front.tpl.php templates for some of the subdomains, for example: www.example.com should have one type of ...
3 votes
1 answer
444 views
Webform capability issue with Chosen
The Chosen module no longer get applied to Webform select fields with the most recent updates to a Drupal Commerce 2.0 site that I am working on. I am using Chosen version 7.x-2.0-beta4+1-dev (part of ...
1 vote
2 answers
471 views
Restrict delete operation on a node referenced by another node
I am using References module to make a node reference in my course content type that reference to school content type (a course belong to one school and a school have many courses). Now what I want ...
0 votes
1 answer
700 views
Pager not working when $form['table'] is called with AJAX
For a statistics page I let users select the right file in a select list. After that I generate a table with stats. This table also has a pager (that worked without the ajax part). Now I did ...
0 votes
1 answer
580 views
Print password confirm field in user register template file
I'm trying to theme the user registration form in Drupal 8. I have defined a custom template for user registration form and printing the fields with the following code. {{ form.field_profile_title }} ...
1 vote
2 answers
646 views
Loading a View Through Ajax - Slideshow not showing
I have a view in node-view mode that has another view (a view slideshow) embedded into that view. I am using jquery and setTimeout to slideDown the hidden div that contains the view a few seconds ...
1 vote
1 answer
1k views
Inline entity form ajax
I am trying to update some field options in an inline entity form with ajax. This should happen, when someone selects a value in an other field. I already have some code which "works", but the ...
0 votes
1 answer
864 views
Change sort order for view when exposed filter text field submitted
I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I'd like the view sort to change to Relevance when ...