Latest Drupal related questions

Score: -3
How do I add an exposed form to search products?
cn flag

I installed the Search API module and followed the documentation to set up an index and a search box using views and facets. It doesn't show an exposed form to search, even though there is a view and I can get a static grid of products. I set through the blocks where the exposed form should be, but it doesn't appear.

According to How to index Drupal Commerce 2 products for the search? the standard sea ...

Score: 0
Missing text format: 4 - ckeditor issue
cn flag

"Missing text format: 4." reported in log from anonymous user - I have Restricted HTML enabled for anonymous user

Drupal 9.3.8enter image description here

This really fills the log - it seems a common issue for the anonymous user

What exactly is " text format: 4 "

Anyone know how to drill into this for a fix ??

Score: 0
EntityQuery, exclude nodes with NOT IN from a multivalued entity reference field
cn flag

Drupal v. 9.3.8 I recently used the entityQuery command and for simpler queries I had no problems. Now I need to filter, as well as for the '=' and 'IN' operators, also the nodes, whose multivalued field has no values ​​or which does not have certain values. Reading the documentation I used the 'NOT IN' operator, but with poor results. Example the query should return me the nodes that do not have th ...

Score: 0
zephirus avatar
How to achieve this? (because I think it's not possible to reference a vocabulary)
fi flag

I'm trying to implement a (i think it's not that complex) functionality but I'm stuck at this moment.

I'm using Drupal 7 and I have my own custom module so, if necessary I would code, but for now I was defining the content types.

I want the user to be able to create two types of content:

1. Stock This content has the following fields:

a. name
b. item
c. quantity
d. value

2. Items (this content is th ...

Score: 0
Content Type Hierarchy
in flag

I'm fairly new to Drupal have content types that loop in children content types using fields. The result is something like this.

Office Content Type
Field: Office Content Type
- Office Content Type
- Field: Person Content Type
- Field: Person Content Type
- Field: Person Content Type
- Office Content Type
-- Field: Office Content Type
-- Field: Person Content Type
-- Field: Person Content Type

I need  ...

Score: 0
salah-1 avatar
How to get a link to an attachment field in a form
cn flag

I have Webform filled by employees. Each user fills the form and submits it. Then a supervisor comes and uploads an attachment to each user's submitted form. How do you create a link that the supervisor can just click to upload the attachment related to each user without having him go through the submissions and all the fields?

I have created and played with a view and can get the webform submiss ...

Score: 1
Egor Elkin avatar
How can I fix "Allowed memory size exhausted" on batch finish?
cn flag

The batch processed all the items, but instead of showing the finish message, I see the error "Allowed memory size of 536870912 bytes exhausted".

When I debug the code, I notice that Drupal loads each proccessed block on batch finish (ContentEntityBase->__construct). I can't figure out why Drupal is doing that.

Structure of the code:

This is a custom module with form class, and batch functions in ...

Score: 1
Kevin avatar
Certain users see 404 when logging in
in flag

We are seeing an odd error with certain users who are trying to log in to a Drupal 9 site. They are using the login form at /user/login, at which point they submit and are redirected to a URL like:

/user/form_action_p_pvdeGsVG5zNF_XLGPTvY....

Which results in a 404.

This only happens to 2 out of 20 users. If I use Drush to generate a login link, it works fine.

What could be causing this? There isn ...

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.