Latest Drupal related questions

Score: 1
"Items in your active configuration have changes"
cn flag

I'm trying to setup configuration management for our team, so i test the workflow on my local machine:

Starting from a fresh copy of our website + database backup, with an empty /config folder ($settings['config_sync_directory'] = '../config';). When i use the command "drush config:export", the task runs and all the .yml files are generated in the /config folder. I then change the websites name (syste ...

Score: 1
user1414202 avatar
How can I detect when a stream wrapper is uninstalled?
ve flag

Does Drupal provide an "uninstall" hook to get notified when a Drupal Stream Wrapper is removed/uninstalled?

Or, is there a way to prevent a custom Drupal stream wrapper from being removed/uninstalled while there is at least one Drupal File entity that is using the stream wrapper?

Currently, for example, a Drupal site will crash if I do the following:

  1. Install a custom stream wrapper (e.g., https:// ...
Score: 1
How do I use Feeds Tamper to process multiple CSV columns into a single field?
cn flag

I have a CSV file that I import into my site using Feeds Tamper.

The CSV file has columns like

  • URL path
  • Favorite vegetable
  • Favorite fruit
  • Favorite pasta

In Drupal, my content type has a JSON Field, and I want to import "Favorite vegetable", "Favorite fruit", and "Favorite pasta" into the JSON field.

Is there a way to map all three favorites columns in the CSV file to the Drupal JSON field and combin ...

Score: 1
Kevin avatar
AJAX in a plugin form results in "The specified #ajax callback is empty or not callable."
in flag

I have a configuration form for a Condition plugin I want to have ajax in. When selecting from this field, I want to get a list of displays for that View:

  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form = parent::buildConfigurationForm($form, $form_state);
    $views = $this->entityTypeManager->getStorage('view')->loadMultiple();
    $options ...
Score: 0
How does importing a contrib module's translations work?
cn flag

Drupal version: 9.3.13

Basically, I'm trying to understand how using a contrib module's translation works. I want to be able to download and use the translations from the Drupal infrastructure, and can't seem to get this to work.

I have a site with two languages, English and German (Default). I did run "drush locale-check" and "drush locale-update", and that imported the German core language file (w ...

Score: 1
How to get parameter from dynamic route in route subscriber
ng flag

I am trying to restrict access for non admin users on admin/structure/menu so that only admins can create any new links via admin/structure/menu.
Now I want that for one special menu with the ID "Focus" the "Add Link" button is available for another role too.

Here is a Screenshot of the actual backend with the "Add Link" still availabe. I want this to be gone for Hauptnavigation but not for Fokusnaviga ...

Score: -2
quantumized avatar
Is it possible to not have to clear the caches every time a twig template file is edited in development?
ng flag

I've got "cache" set to false in service.yml - but I still have to clear the Drupal caches for each template change I make. This is obviously time-consuming if you're doing some trial and error testing. Is there a way to bypass the template caching while developing?

Drupal 9.

enter image description here

Score: -1
Nafai avatar
Unable to add newly created term to the node
in flag

I want to add new taxonomy term to group of nodes that have specific terms already.

To retrive them I use this function

function getNodesByTaxonomyTermIds($termIds){
    $termIds = (array) $termIds;
    if(empty($termIds)){
      return NULL;
    }
  
    $query = \Drupal::database()->select('taxonomy_index', 'ti');
    $query->fields('ti', array('nid'));
    $query->condition('ti.tid', $term ...
Score: 0
Jude Hungerford avatar
Creating links in TableSelect rows
cn flag

I've created a module which defines a Form, but when I try to add a column of links, it is empty when I set the '#type' to 'link'. I am testing this on Drupal 9.3.x.

On the surface, this is the same as Add a link to a tableselect row, but the answer posted there does not contain the full working code, and I'm fairly sure the solution in my context is going to differ from the one posted there.

This is  ...

Score: 0
Brittany avatar
Title field returning ' where apostrophe should be?
ph flag

I have a series of fields on a View. For some reason, any node title field with an apostrophe in it is being returned to my endpoint as Jen's Cupcake Store instead of Jenn's Cupcake Store.

Any idea how I can fix this? Been at it for a few days now and I can't seem to find a single solid solution. Help is appreciated!

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.