Drupal is up and running but how do I ...?

Drupal 7 creates new content entity each time i upload an image to it

I have created a custom content type with two image fields. Each time i upload an image when creating the content it is saved. If i upload 3 images, in content the item is replicated 3 times with the same name plus the real one with the complete version. What is causing this behavior?

Facet active status is not showing correctly

Hi I' am using JSON:API Search API and Facet for my headless search page.

This is the API endpoint I am using.

/jsonapi/index/products?filter[field_tags]=15

I get this response. But in response active status is not true for the tag 15. What is the error in this? Thank you!!!

Private File Uploads Do Not Prevent Unauthenticated Access

Why in the world are my file uploads viewable by anonymous users? The file upload fields are set to private. I've created a private directory withbthe appropriate .htaccess file and modified settings.php via $settings['file_private_path'] = '/opt/drupal';

Which permissions setting do I need to uncheck the Anonymous user?

(I cannot believe I have to write custom code or use a contrib module for this.)

A background color clashes with the native color of links

I have a box with some links and my problem is that while the native hue of the links is Blue, if I give their box a background color of a nearby hue like the Green hue, then the links appear almost invisible.

To cope with that problem I can start defining lines upon lines of CSS particularily for this box and its links, for example:

What are your default or must-have modules for Drupal 10?

As the title says: What are your default modules, to start a project with Drupal 10? And which core modules can or should be disabled?

I'm interested in the general (opinionated) ecosystem, but especially interested in simple, non-bloated modules for privacy (GDPR compliance), security, accessibility and performance.

Some context:

Give all blocks CSS but also give the first block different CSS

In Drupal 10.2.2 with Olivero I am trying to give all blocks CSS but to also give the first block different CSS.

.region--sidebar .block {
    padding: 25px;
}

.region--sidebar .block:first-child {
    padding: 0;
}

The first chunk works but the second doesn't. What have I done wrong?

Pages

Subscribe with RSS Subscribe to RSS - Post installation