All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Drupal Console: How can I get single items in multiitem configs using debug:config

For example, in drush I can run drush cget search_api.server.iges_solr backend_config.connector_config.port and get a useful answer. ('search_api.server.iges_solr:backend_config.connector_config....
0
votes
1answer
11 views

Copying over all the elements to a new page

I have a website where we post our events. We would love to copy the 2018 event post and then edit it, rather than copying over all the elements to a new page. Is this possible?
0
votes
0answers
6 views

Get Relationship for the Author of the Latest Comment

In a Node view, I am trying to group the latest comments by the author's field_last_name, but I am having difficulty adding this field. I tried using the the "Last comment" and "Last comment author" ...
0
votes
0answers
5 views

Path Breadcrumbs keyword argument

Trying to create a custom breadcrumb using path breadcrumbs for https://dev.tiffin.edu/search/node/% - where the % is for the site search field. I cannot figure out how to configure this as every ...
0
votes
0answers
4 views

How to change view's field (Custom-Text field specifically) value based on other field value using hook_view_pre_render?

I have created a taxonomy-term view. I have added two fields in a view: term-id and custom-text field. I want to check if term-id has children and depending upon the result, I want to set markup ...
0
votes
0answers
9 views

How can I make the coupon code field in commerce mandatory?

Using D7 commerce coupon/discount modules. I need to make the coupon field mandatory. There is no standard "required" checkbox on the field and I tried using conditional fields module to no avail.
0
votes
0answers
17 views

What is x-speed-cache-key? What is its purpose?

Our drupal site was pentested. The pentest report labeled an action involving the header X-Speed-Cache-Key as a security concern. The finding stated: Arbitrary parameters supplied to the query ...
0
votes
0answers
20 views

How do change the value of a session before form submission

I created a custom module that allows users to enter their information, and during the form submission, I set a session with the name that they type in the form: $session = \Drupal::request()->...
2
votes
0answers
26 views

Can the core link field link to path aliases with query string parameters?

I have a field that I need to support linking to internal pages. One of the main cases for this is linking to a search page with some filters already applied. In this case it is a Solr based search. ...
0
votes
0answers
10 views

How to use % arguments in Easy Breadcrumbs “Paths to replace with custom breadcrumbs”

I am trying to give a more logical breadcrumb flow to the Drupal Commerce 2 checkout path, as Commerce doesn't support breadcrumbs in the checkout process. When not displaying the current page in ...
1
vote
1answer
18 views

Programmatic access to metatag module fields

I am wondering how to programmatically access metatag module data. For example, my node has an entry for metatag description, and I see in the generated page the meta description tag, which is great. ...
-4
votes
1answer
9 views

Article “promoted to front page” also displays all images of featured slideshow

Currently using Shinbun theme and Drupal 7 (based on an existing site, as required for a project) and was struggling to create a slideshow of selected images, which I finally managed on the article ...
0
votes
1answer
16 views

Override a file from the parent theme

Adding in the child theme a CSS file with the same name as the parent theme CSS file overrides the parent file. It doesn't seem to work JavaScript files. How can I override a JavaScript file loaded ...
0
votes
1answer
9 views

Migrating input formats for taxonomies with empty description

I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.7.10 and Drupal 7.61 for a copy of the production website. I have tried to migrate ...
0
votes
2answers
15 views

Appending Multiple Fields In Twig

I'm attempting to append two fields with some text in the middle. Using the changed date and a plain, core, text field, I can do something like this, and it works: {{ node.changed.value|date('m.d.y') ...
1
vote
0answers
14 views

Where can we translate Format settings label?

I am just wondering that where we can translate the Format setting labels which is configured in Manage display of content type. I checked in configuration translation, user interface translation but ...
-2
votes
0answers
6 views

menu is not working that made with menu token

I have a menu(working with menu token), this is working every page, but this is not working on views page (does not appear on the views page). How can I show on views page? thanks.
0
votes
0answers
11 views

Dialogflow chatbot integration [on hold]

I'm doing poc for chatbot integration with Dialogflow. I have followed Create a chatbot using Dialogflow and Drupal 8, but I am getting the following error when calling the webhook. Error: Call to ...
0
votes
1answer
19 views

How to find a field name/column name of a field in database where I have only the label of that field?

I am working on an integration part with drupal framework. Here it's hard to find the table names of the field which is present in the view as I know only the field label name. Is there any way to ...
0
votes
0answers
19 views

Cannot get the label of my taxonomy term

I'm quite new to twig but I've found out a couple things. It seems like my code is reading the Taxonomy instead of the term inside. Because all of the icons in my code change when I have the ...
0
votes
0answers
26 views

Remove duplicate records from view result with pager

My project is setup in Drupal 7 and i am using search API for display my custom search result. Actually i want to show search result based on two content types content so i have configure the search ...
0
votes
0answers
14 views

Seach Page Split into block & view

I already created a search view like /search it is giving form and results finely but Views UI is disabled in my server . So i want to split this search page into 1) A block which contains a search ...
0
votes
0answers
12 views

Sort Search API results by taxonomy reference field name (and not TID)

I have a views index page that when displaying results without a text search I want to display sorted alphabetically by a taxonomy reference fields name. I can get it to sort by this reference field ...
0
votes
1answer
45 views

How to add a taxonomy term reference field to the node title in node.html.twig

Using a term reference field, I am adding the manufacturer's name to the front of our node titles for styling and line breaks between the manufacturer field and the title in views which is really nice....
0
votes
1answer
32 views

How to hide a webform field from a node display when the per-user submission limit has been reached

I have a Webform field on my node, which links to an application form. The form is set to allow one submission per user (per node). I want the link to disappear after the user has submitted the form. ...
1
vote
1answer
14 views

Having issues saving altered value in a view pre render

I am trying to remove image tags in the view prerender. I've looked through articles and StackExchange and I have set it up correctly. But when I refresh the page containing the view, all the HTML ...
-2
votes
0answers
11 views

Changed established template [on hold]

I am a new webmaster who is using, apparently, an older version of this website application. We have recently changed our phone number and I am unable to change the number that appears at the bottom ...
-2
votes
0answers
12 views

How can an open close event be binded to a Drupal 8 Modal?

Drupal 8 uses the jQuery Dialog to handle its modals. They also provide "data-dialog-options" as a means to configure the jQuery Dialog options in links. However, is it possible to bind methods/events ...
-1
votes
0answers
11 views

Webform dynamic country code by country name

kinda new with Drupal and I have a question - From Webform module I have a survey and one of the questions is - From which country are you? and to answer there is Country name predefined answers, is ...
0
votes
0answers
19 views

Theming Paragraph at second item only

I have already a theme using for my Paragraph, its view based so im doing this to print the fields: <div class="col-md-5 p-4"> <div class="content"> <h3>{{content.field_title}}</...
0
votes
0answers
22 views

User error: “name”/“title” is an invalid render array key [on hold]

I am trying to port a Drupal 7 theme to Drupal 8. After copying over the files, converting my .info to a .yml, making the changes to my .theme file, and converting my template php to a .twig file, I ...
0
votes
1answer
38 views

Event subscriber to invalidate a cache

I am invalidating a cache tag in KernelEvents::REQUEST event: public static function getSubscribedEvents() { $events[KernelEvents::REQUEST][] = ['onRequest', 100]; return $events; } public ...
0
votes
1answer
11 views

How to create programmatically multiple URL alias of same taxonomy term?

I have category cars and I want to create its URL alias according to the region like if the user location is Australia than URL will mysite/australia/cars similar if the user location is USA than URL ...
0
votes
1answer
14 views

Alter Add to Cart form POST data provided by #action

I am going to be phasing out Drupal Commerce on our website in favor of a new custom built application that is hosted at another URL. Without completely rebuilding everything I am trying to override ...
0
votes
0answers
14 views

Ajax problem with commerce price and views

I use the last version of commerce and drupal 8.7 On all views with product, I can't edit product fields (expected the title) because of ajax error : admin/structure/views/ajax/handler/produit_une/...
-4
votes
0answers
14 views

I want to set-cookie path to absolute path with nginx configuartion [on hold]

I want to set path = absolute path; instead of path = /;in headers with help of ngnix file. Is that do able?
0
votes
3answers
32 views

Strange behavior: Extra css classes are NOT merged with the 'Search Block' form tag classes but with those of BLOCK wrapping the form tag

i'm experiencing such 'strange' behavior with Drupal (v8.7.10) when trying to add css classes to the default Search Form form tag using MYTHEME_form_FROM_ID_alter hook, the classes are NOT merged with ...
-5
votes
0answers
19 views

Tags in Vimeo searchable from the site [on hold]

Currently we store all our videos on Vimeo. The plan is embed them on a new Drupal website. Tags are added to the videos inside of the Vimeo management site for discovery. This is fine for searching ...
0
votes
0answers
16 views

Related nodes view block based only on child Taxonomy Terms

I have a 2-levels Taxonomy Hierarchy structured like this: Parent Term - Child Term 1 - Child Term 2 - ... My goal is to create a view block, where related nodes based only on child ...
0
votes
0answers
40 views

Using native sql query at migration

I want to use a native SQL query for my source migration class, but I can't find a way. I've tried to use the $this->database->query() but in that case, it will fail because there's no ...
1
vote
0answers
31 views

Inline entity form field alter

I am using Drupal Commerce. For the Variations, I am using multiple add /remove via AJAX. I need to make field readonly. 0 -> <input type="number" name="variations[form][inline_entity_form][...
1
vote
1answer
33 views

The provided host name is not valid for this server

I'm trying to migrate a drupal website from a server into my localhost but I trigger the error The provided host name is not valid for this server. I've seen I need to add the trusted host ...
0
votes
1answer
31 views

If statements in twig

I've got the following card in my drupal installation, I've hidden unnecessary items for my question in the picture. What I want to achieve is the following: I want the icon to change based on the ...
0
votes
2answers
32 views

Composer requirement

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I'm not planning to have complex modules with dependencies and I'm comfortable to perform ...
1
vote
0answers
20 views

How to pull a record from Salesforce and immediately push the node ID back to Salesforce

I'm using the Salesforce Suite module. What I'm trying to accomplish: When a record is created in Salesforce, that record is pulled into Drupal and the new node content ID is pushed back to the ...
0
votes
0answers
10 views

Error when adding BCC to email handler with webforms and smtp

I use SMTP to handle emailing and Webform to generate my forms on a drupal just upgraded to 8.7.10 I have recently discovered an issue where webforms that have an emal handler set to include a BCC ...
0
votes
1answer
18 views

Copy of bootstrap based site, but the HTML is different, why? How to fix?

The good site: https://bsc.coop The bad site: https://dev.bsc.coop The top-nav on dev is clearly not enjoying the same CSS as on prod. The HTML is different. It completely lost the div with the ...
-2
votes
1answer
20 views

How can I create a page with four content types displayed with infinite scroll?

I need a page where i display a list of 4 contents types articles. The articles for each content type must grouped, and when scrolling i want load page for each groupe. What is the better way to do ...
-1
votes
0answers
25 views

How could I display multiple records in drupal on different pages which are acting as a gridview?Edit and display multiple records [on hold]

I would like to display 200506A on page 1 and 200506B on page 2. I have a one scheduling database on drupal side and inventory database for manage the inventory. On scheduling database Professional ...
1
vote
1answer
17 views

Field Formatter Class and limit number of characters

I have to insert in a field (admin/structure/types/manage/article/display) a string of classes to get a button from a text but the "Field Formatter Class" field has a character limit so I can't enter ...

15 30 50 per page