Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [8]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
0answers
2 views

Fulltext fields search — ONLY one keyword return none results

I am building search enhancement in Drupal 8 site. I have one search server: Acquia search API In the search API fields tab, i set up title, rendered HTML and taxonomy term as fulltext fields and ...
0
votes
0answers
8 views

What'll be the Consequences of Relying on GIT to update Drupal Core?

Background: So I just finished manually updating ~75 Drupal sites (7 & 8) last Friday, when there was another core update. Also, our current development setup is pretty dire. We are just beginning ...
0
votes
0answers
24 views

Unique Form Per User With Custom Form Class

Not sure if this is a related/duplicate of Generate unique form ID based on context I am hoping I can render a unique form per user with the Form API using a custom form class. What I've seen with \...
-3
votes
0answers
16 views

How to retrieve form data?

How to retrieve advanced search form data? I tried following but didn't work: \Drupal::formBuilder()->getForm()
0
votes
1answer
8 views

How to change the labels TRUE and FALSE of a boolean field in views exposed filter

I am using the flag module to toggle a node type 'Task' as Done. I made a view that lists the tasks, and added a views exposed filter for the flag status, which is a boolean field. In this way users ...
0
votes
0answers
10 views

Problem using Font Awesome for a Custom text in a view

I have a custom entity (contract) created in a custom module (amap) by a bunch of BaseFieldDefinition. Here is the corresponding form: One of the field is a file defined this way $fields['file1'...
0
votes
0answers
8 views

How to disable core JS aggregation and AdvAgg just for admin paths

I help look after a site which uses $settings['file_public_base_url'] to serve files from a different subdomain on the frontend, but on the backend (admin paths like node/add and node/edit) this ...
0
votes
0answers
13 views

After installing RNG, getting “illegal choice detected” when trying to create an event type [on hold]

When creating a new event type after first installing the module on Drupal 8.6.12 and module version 1.6 (latest) the following message is given on screen: An illegal choice has been detected. Please ...
0
votes
0answers
21 views

Route Parameter Validation Problem

I have limited experience with D8 and custom routes. Current mobile video system for client takes a scheme-less url for the video like so https://example.com/mobile-video/some-video-desktop....
0
votes
1answer
33 views

Can I safely delete the migrate tables after migration?

I passed a site from d7 to d8 I wanted to know if I can delete tables db migrate map d7 and migrate messages d7 they are more than a hundred I can delete db tables migrate map d7 and migrate d7 ...
0
votes
1answer
26 views

Output image src via JSON

I have worked out how to use dynamic routing and JsonResponse() in a custom controller to output pure JSON, with no HTML at all. I would like to do the same with an image — for the page to output an ...
0
votes
0answers
18 views

How to query custom entities in a many-to-many relationship

I have created two custom entities using the Drupal Console. These Entities will have a many to many relationship. My research tells me that a basefield can be created as an entity-reference via ...
-4
votes
1answer
27 views

If admin theme is 'seven' disable the module

So in a custom module, I'd like to check whether the theme is seven or not, if it's seven the module shouldn't load/work. Note: I have a module that shouldn't override half of UI of seven theme but ...
1
vote
0answers
28 views

How do I remove unwanted hreflang links from page

I have a content page in English with Japanese and Chinese translations. Even when I unpublished the translation nodes, the page source code will display the hreflang attributes to the unpublished ...
0
votes
1answer
28 views

Shared Field Name Between Entity Types?

I have always separated my field names by entity. e.g. field_paragraph_h2 or field_content_h2, but when you look at config, fields are designated by their entity type as well. field.field....
-1
votes
0answers
15 views

Cache and deadlock related database errors [on hold]

We have a module that performs fairly complex operations underneath the hood. Sometimes the processes exit with database related errors, since there are no exceptions thrown by Drupal core we can't ...
1
vote
1answer
51 views

Bidirectional entity relationships?

I am doing a migration right now and have a need to maintain how entities are related in a way that the core entity reference field does not seem to support. Lets say I have two content types, Foo ...
0
votes
1answer
27 views

Menu on the taxonomy term page

maybe the solution to my problem is quite simple but I can not find a way on the taxonomy term page to show a menu block! I use drupal 8 with bartik theme and have a menu based on taxonomic terms (...
0
votes
1answer
37 views

Show count in view grouping

I'm building a index view to use as search. I'm grouping the results by a term field and everything works fine. What I want to do is add a count after the group title to show how many results that ...
0
votes
0answers
11 views

Errors when the product price is not the same as default country

On Drupal commerce 2 (Drupal 8), the default country for the site is Canada. But I have multiple currencies enabled. When the price for a product is entered as US dollars, after completing the payment ...
4
votes
1answer
54 views

Host doesn't support nested folder structures for deployment. How do I adjust Composer?

So, I have to deploy a drupal 8 site to a host which doesn't provide functionality to specify an entry point for a Drupal site which is nested below the site root folder. How can I update the folder ...
1
vote
0answers
25 views

Body, files, and paths problems

I was suggested so many times to migrate my old project from D6, so I finally decided to jump into this. And as it always happens with Drupal, things never work as expected at first attempt. The old ...
1
vote
1answer
29 views

Increase label max length

The default max length for all labels of all field types is 128. The DB can handle 255. So no schema change. How can I change the default max length to 250? I've seen this module https://www.drupal....
0
votes
0answers
21 views

Error messages not displaying with use-ajax-submit for existing content form

I am using use-ajax-submit with custom submit handler, but it is not going inside submit handler when there is any validation error, and error messages are also not displaying on form element as well. ...
-2
votes
0answers
34 views

Change the taxonomy term name character length

I am trying to increase the character limit of the taxonomy name character limit. Tried a few methods which were found by searching in Google and failed to get the result.
0
votes
0answers
7 views

Using Webform on Taxonomy Page and using that Term's Values

Say I have a Vocabulary called Branches which has an email field. I wanted to attach a Contact webform to the pages of these Branches where an email will be sent directly to the email field value for ...
1
vote
0answers
31 views

Create a patch for core.libraries.yml

I noticed that core/jquery.cookie is referencing the jquery-cookie v1.4.1 library that is now no longer maintained. It is being superseded by js-cookie and so I would like to write a Drupal core patch ...
1
vote
1answer
35 views

How do I programmatically update a UUID?

Reason: Receiving uid does not exist error. Upon investigating, this error appears only when we edit or save the preexisting columns paragraph. If we create new columns paragraph, the error doesn't ...
0
votes
2answers
28 views

How to ignore opening quote in views sort

I use views to display a sorted list of book titles. Titles that begin with a quote are listed first. I want to ignore the quote for sorting purposes. So, instead of: "Once Upon a Time": Fairy Tales ...
0
votes
2answers
57 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
-1
votes
0answers
13 views

How to configure simplenews to send HTML newsletters by email?

I'm using Drupal 8, simplenews module, and would like to send newsletters monthly in HTML format. The problem is that i tried to configure mimemail, htmlmail, and swiftmailer, all to HTML format, but ...
-1
votes
0answers
20 views

Testing content types on a site without having to create nodes

I have a bunch of Drupal sites on Drupal 8. My task is to test as a support admin of the site to check if the creation of nodes is possible. And if possible to actually create the nodes to prove it by ...
3
votes
1answer
65 views
+50

I cannot translate the action label

I'm using Umami profile and choose Spanish is default language. Almost of the interface has been translated into Spanish. But some places did not translate like user page. I'm going to admin/config/...
0
votes
0answers
16 views

Result should return a value greater than or equal to the selected facet

Here is the scenario. I have created a facet which list all GPA's (these are decimal numbers). e.g. 2.0, 2.5, 3, 3.5 etc. What I wanted is when say a user choose 2.5 GPA from the facet, the returned ...
-3
votes
0answers
27 views

How do I change header and footer based on URL?

I have a custom header and footer for the front page. I would like to change them for some pages. For example, initially I have the image a.png in the header; after clicking the entry form, the ...
0
votes
1answer
49 views

Why does updating break my site?

I have a site running Drupal 8.6.10. I installed it with Composer: composer create-project drupal-composer/drupal-project:8.x-dev JdP8M7b --stability dev --no-interaction I tried to update it to 8.6....
1
vote
0answers
37 views

Custom field type where entity reference is optional?

I am trying to create a field type that is a bundle of two fields. An entity reference user field, and a plain text field. Image attached for clarity. The idea is that the user attached to a ...
0
votes
0answers
6 views

PaymentMethodManager() get plugin on NULL ubercart error

Hi when trying to create an order in checkout state, the order gets created however when trying to view the order it errors out with the error below: Error: Call to a member function getPlugin() on ...
0
votes
0answers
12 views

How to list of allowed users of a taxonomy term?

I am using the Permissions by Term contributed module in order to modify the permissions of users based on the taxonomy terms on a node. This is not a problem, however I would like to retrieve a list ...
0
votes
1answer
41 views

Get an Un-submitted/Active Form Field Value in $form_state?

I am unsure how to get unsubmitted/active form field values from a number/textfield into $form_state. field_count could be saved as 4, then is changed to 115, how do I pass that change to $form_state ...
0
votes
0answers
15 views

updates page shows an error for a mystery module 'standard 8.6.12'

on the updates page /admin/reports/updates under Modules there is a module called standard 8.6.12 as and it is highlighted with a warning No available releases found (Warning) this module does not ...
0
votes
0answers
12 views

How can I use full URLs for aggregated assets on a specific route?

My organization is using an external search application. The results are intended to be wrapped in a header and footer to mimic the appearance of the main website. I've created a couple of custom ...
0
votes
1answer
18 views

How to use Interface Translation for specific text on specific pages only

I need to translate certain text in a twig template to one of several languages, depending on the Language selected for the node being displayed. I've installed the Interface Translation module (...
0
votes
0answers
17 views

$form_state values are empty after ajax $form modification

Im doing a module to generate form validation on field length, first i display a select of availble content types. When the target content type is selected an ajax request display the end of the form ...
-1
votes
0answers
35 views

How to ungroup address form elements

We're using the Address module to provide address functionality. But its widget is in a container ( details form element) But what we need instead that is to divide the elements, something like in ...
0
votes
0answers
19 views

How to dive deeper into the hierarchy using views

I am really bad at explaining things so I will just use images to best illustrate what I am trying to do. To summarize, I am learning Drupal 8 and I thought my pet project would be to create a ...
-3
votes
0answers
25 views

How can I merge combine facets?

I have a search page with a faceted filter on 'Content Type' field. I basically need to merge some of the content types into one single facet. Example: Content Type A(20) Content Type B(30) Other ...
1
vote
1answer
93 views

Unable to access private file?

I had this issue before, and last time the problem was that node was unpublished. The private file became accessible when the node was published. This time, however, I'm not using a node. I'm just ...
1
vote
2answers
40 views

Date vs Timestamp field-type

My new project involves the requirement of manually setting a time of creation of nodes because they're looking into manually migrating parts of their old website into their new one. The date will ...
1
vote
1answer
154 views

Will my managed file get deleted?

At this url: /admin/config/media/file-system There is a setting: Delete temporary files after X hours Does this specifically refer to files in /tmp ? Or whatever I set as my temporary folder? Or ...