Normal view

Drupal 10.5.4 module du coeur et du thème retiré

Bonjour,

(1er post sur reddit)
Voilà j'ai dans le tableau d'administration les message du titre pour le module " RDF " et le thème "Seven" où l'on indique que :

1-le module/thème contribué doit être réinstaller.
2- le module/thème est installé mais plus fournit par le coeur

Merci pour votre aide

submitted by /u/Nirabat
[link] [comments]

Keyboard focus moves to form after using pager items

Hi, working on an AJAX view with exposed form (not in its own block) and pagination (Full pager) enabled, noticing that when I use a pager item, it successfully displays updated content and does not reload the page as expected, but switches focus to my <body> tag, and when I hit tab, the first element it goes to is the first input element in this form.

I wrote JS to monitor which was clicked, re-set focus to the pager items after ajaxSuccess, etc, and I watch it do this successfully, then another XHR response loads and focus is set on the body.

I tried on another view of my site to rule out anything custom we'd done with the page in question and same behaviour there. I only have the one site, all pages running the same theme etc, so I don't have a good way to test this out to determine if its OOB like I think it is.

Trying to solve this for keyboard users/accessibility purposes, wondering if anyone has found a workaround, or even clues for debugging code I could add to try to determine what's doing this. Thanks!

submitted by /u/Far-Comfortable4462
[link] [comments]

Secret Login module Drupal 11

Secret Login module Drupal 11

The Secret Login Module allows users to log in through a custom URL defined in the Drupal configuration. When the custom URL is set, a secure tokenized URL is also generated. Users can log in using both the custom URL and the token. This feature is useful for quickly accessing an admin or other user account on a Drupal site without requiring a username or password.

Features

Allows administrators to define a custom URL in the configuration for all users.

  • Allows administrators to define a custom URL in the configuration for all users.
  • When this URL is accessed, the user is automatically logged in as an administrator along with another assigned role on the Drupal site.
  • The Module also provides a one-time login URL token for a configured user, along with a button to enable or disable the functionality. The token URL is valid for one hour, after which a new token is automatically generated.
  • It also provides a search functionality by username and email, which helps in quickly finding a user — especially when there are hundreds of users on the Drupal site.

When the URL token is set in the module configuration, it appears in green, indicating that it is ready to use

This module is designed to facilitate easy user login through a custom URL specified by the administrator in the configuration settings.

submitted by /u/VishalYadav-09
[link] [comments]

CKEditor Drupal Bootstrap Widgets and templates.

I am trying to understand creation of templates (used for product description consistency) and the creating of custom bootstrap widgets. I am on version CKEditor 4.22 and have bolt plugins available to me. I want to add a few custom templates and add a few custom widgets for content. I am struggling with the widgets setup as the file specifically says not to edit the file, so i believe i would need to create a new plugin? Not that I have any experience with this, but can someone direct me on a simple example with a widget to get me started, or confirm if i can modify the existing bootstrap widgets (columnleft, columnright, etc...)to serve my needs? Thanks

I figured I would add this as the plugin for Widgets specifically notes Drupal in the notes.

I have not tried anything as of yet.

Noted, I did not add the module I was referring to - they are WidgetTemplateMenu and WidgetBootStrap.

submitted by /u/Typical_SEO_Worries
[link] [comments]

DriesNote DrupalCon Vienna 2025

A link to the DriesNote: https://www.youtube.com/watch?v=WNEyg3UKTVQ

I think it's one of the best DriesNotes that I have seen yet to date.

Why? It doesn't sugarcoat anything and it shows a clear path forward for Drupal.

There is a lot in the pipeline, focus will be key but I'm very positive on what I have seen.

What do you think about this DriesNote?

submitted by /u/Fonucci
[link] [comments]

Module you would like to see in drupal

I am a web developer and planning to build a drupal portfolio. For me building something is the best way to learn and gain experience. I would like to build something useful and needed by others. Can you any idea?

Ps: please keep it simple for now.

submitted by /u/atillaphp
[link] [comments]

What is recommended when moving from Wordpress?

Hi. I am thinking of moving away from Wordpress. Has had a lot of suggestion to use this and that, ”headless”(I think it was)but I have earlier used Drupal as admin on a small firm. It was however installed and developed by a web company. Never worked with layout or so, but I gave done my own layout in WP, based on a Genesis child theme. So I am somewhat familiar with css and such. Many years ago I also buit a ”flat” webpage in html and css. I was tild that Drupal is difficult, but I am in no hurry. So what do you think would be the correct way: Drupal 11 or Core? I just read about Drupal CmS which seems to be a new version. Is that a better choise to me? I was also told that Bootstrap 5/Barrio is a good choise if I am used to work in Genesis. I think I could use some plugins though since coding those is above my limit of knowledge. What I think is essential for my current wordpress site(s) are: Autoptimize Contact form Social media button bars SEO Framework WP Optimize And some sort if gig calendar. I use EventON. I understand that these are probably not available forDrupal. And maybe not even needed. But those are the ones I feel are critical on my WP installation.my websites are personal and not commercial. Which gives me a limitrd budget. If needed I can buy theme and some plugins, but can’t afford to hire a web developer.

Thankful for any help.

submitted by /u/TomasComedian
[link] [comments]

Is there a way to auto-translate user comments based on the interface language in Drupal?

Hi! I'd like to know if it's possible for users to post comments in the language they have selected on the language switcher, and then have those comments automatically translated when another user views the page in a different language.

For example: a user in Chicago browses the English version of the site and posts a comment in English. Later, someone in Bogotá visits the Spanish version of the same node and sees that comment automatically translated into Spanish.

My site is fully multilingual with a single content type. Content translation is enabled, so I manually translate each node to have two versions (Spanish and English). However, I’d like comments to be translated automatically by Drupal (or an integration), rather than doing it manually for every comment.

submitted by /u/kayograco
[link] [comments]

Removing a view link from /admin/content

Removing a view link from /admin/content

Hi everyone-

Running Drupal 10.3

You know the list of views across the top of one's admin/content screen?

https://preview.redd.it/k9vwlvdjmjtf1.png?width=1594&format=png&auto=webp&s=481bccf381ad6f53ab046635ef7dc87ca8794e6f

How do I delete one of those? Going to /admin/structure/views and disabling the view or even deleting it didn't seem to work. In fact, deleting it not only didn't disable the link, the link still took me to the admin view!

In our particular case we want to remove "Comments" from that list.

Thanks!
J

submitted by /u/dietdew72
[link] [comments]

Question Json API sur site Multilingue

Bonjour à tous !

J’ai une question pour les experts de JSON:API

J’ai un site Next.js en front et un Drupal en back-end. La communication se fait via JSON:API, et le site est multilingue.

J’utilise Redis pour améliorer les performances, et je souhaite pré-générer les caches Redis via une cron.

Le problème : lorsque j’exécute le cron, les données mises en cache sont toujours dans la langue par défaut (ou celle du back-office), au lieu de respecter la langue que je passe dans ma boucle.

→ Connaissez-vous une manière fiable de forcer la langue de contexte lors de l’exécution d’une cron ou d’une sous-requête JSON:API en PHP (via $this->kernel->handle() par exemple) ?

Pour donner plus de contexte, voici un extrait du code utilisé dans mon cron :

$cache = \Drupal::service('lagoon_global.cache'); $languages = ['en', 'fr', 'de', 'es', 'it', 'pt-pt']; foreach ($languages as $language) { $cache->lifeOnBoardListJsonApi($language); } 

La méthode appelée :

 $collection = $this->jsonapi_client->getNodeCollection('life_on_board', $filters, $options, true, $language, true); 

et ensuite la méthode getNodeCollection est :

public function getNodeCollection(string $bundle, array $filters = [], array $options = [], bool $decode = true, ?string $language = null, ?int $runAsUid = null) { $prefix = $language ? sprintf('/%s', $language) : ''; $path = sprintf('%s/jsonapi/node/%s', $prefix, $bundle); $query = [ "filter" => $filters, ...$options ]; return $this->requestJsonApi('GET', $path, $query, null, $decode, $runAsUid); } 

et finalement :

public function requestJsonApi(string $method, string $path, array $query = [], $body = null, bool $decode = true, ?int $runAsUid = null) { $server = [ 'HTTP_ACCEPT' => 'application/vnd.api+json', 'CONTENT_TYPE' => 'application/vnd.api+json', ]; $query[] = []; $secret = getenv('JSONAPI_SECRET_KEY'); if ($secret) { $server['HTTP_secret-key'] = $secret; } $request = Request::create($path, $method, $query, [], [], $server, is_array($body) ? json_encode($body) : $body); $response = null; if ($response === null) { $response = $this->kernel->handle($request, HttpKernelInterface::SUB_REQUEST); } $status = $response->getStatusCode(); $content = $response->getContent(); if ($status < 200 || $status >= 300) { $this->logger?->error('JSON:API {method} {path} a renvoyé {status}: {body}', [ 'method' => $method, 'path' => $path, 'status' => $status, 'body' => $content, ]); throw new \RuntimeException(sprintf('Erreur JSON:API %s %s (%d)', $method, $path, $status)); } return $decode ? json_decode($content, true, flags: JSON_THROW_ON_ERROR) : $content; } 

Merci d’avance pour vos idées ou retours d’expérience !

submitted by /u/One-Peace4941
[link] [comments]

How to reliably add Bootstrap classes to blocks in a specific region in Drupal 11?

Hi everyone,

I’m working on a custom Drupal 11 subtheme based on Bootstrap 5 and I want to achieve the following:

Goal:
I have a footer region called footerblocks and I want all blocks placed in this region to automatically get Bootstrap 5 classes like col-md-4 and mb-4, so they layout nicely in 3 columns.

What I’ve tried:

  1. Using hook_preprocess_region()Problem:foreach (Element::children($variables['content']) as $key) { $variables['content'][$key]['#is_in_footerblocks'] = TRUE; }
    • I iterate through $variables['content'] with Element::children() to flag blocks inside footerblocks.
    • Then, in hook_preprocess_block(), I check for this flag and add the classes.
    • Sometimes $variables['content'] is a Markup object instead of an array, which causes a TypeError.
    • Even after fixing with is_array($variables['content']), some blocks in footerblocks are never flagged, and I get logs like: Block b5subtheme_belangrijkelinks_3 processed. Region: NONE. (No footerblocks flag found)
  2. Trying to detect region in preprocess_block()
    • I check $variables['elements']['#configuration']['region'] or $variables['elements']['#block']->getRegion().
    • This works for some blocks but not reliably for all, and I’m not sure if I’m missing something about render arrays or region naming.
  3. Using block--footerblocks.html.twig I considered creating a custom block template for the footerblocks region (e.g., block--footerblocks.html.twig) and adding the Bootstrap classes there. Problem: Some blocks still don’t render with the correct classes, and I want a method that works for all blocks automatically, without creating a separate template for each block.

Questions:

  • What is the best/reliable way in Drupal 11 to detect if a block is placed in a specific region?
  • Is there a safer way than preprocess_region() + flags to automatically add classes to all blocks in a region?
  • Could there be a problem with how my region footerblocks is defined or rendered in a Bootstrap 5 subtheme?

Thanks in advance for any guidance or examples!

submitted by /u/Prof-ChromeOS
[link] [comments]

Full Upload with Drag and Drop AND Drag and Drop sorting functionality of File/Image field? Usability advice needed

Use case: classified ads type site where user has opportunity to attach many images through dedicated File/Image field. How many? 20+ maybe 30+. That is important!

The problem that built in core file uploader has some bugs (as in https://www.drupal.org/project/drupal/issues/3548630) and totally break down if one image is does not comply to the set requirements of width x height.

So for that I am using PLupload module, which solves that issue. It just drops image files which are outside allowed dimensions.

Another issue is that even if all the uploading works, like with PLupload module - the built-in Drupal core image sorter has table-like wrapper with <li> items, so all the sorting is made just vertically. It is perfectly ok if we use 3-5 images, but not ok if there are 20-50 images. It is a usability nightmare from end user standpoint.

I found that https://www.drupal.org/project/dropzonejs module should offer vertical and horizontal drag and drop sorting, but I have no luck to get it working on the File/image field no matter what I try.

Just me have no luck with that module or there are other selections?

What would be your solutions to this? Thank you in advance.

submitted by /u/Regular_Fake_Name
[link] [comments]

The best Drupal Contest is LIVE!

Just wanted to share that DrupalFit is running the DrupalFit Challenge – Vienna Edition this year. The idea is simple: they audit submitted Drupal websites using their DrupalFit tool, checking things like performance, security, accessibility, and overall site health.

They’ll recognize the top sites across five award categories, with winners announced live at DrupalCon Vienna on October 16th.

If you’ve got a site you’re proud of, it could be a fun way to see how it measures up and get some recognition from the community.

You can submit your enteries here - https://forms.gle/7DdVGAd4RTqn3Yy77

submitted by /u/98Palak
[link] [comments]

How hard is it to upgrade a Drupal Site (9.2.4 to 10 or higher)

Hi everyone! I'm new here.
I work for a non-profit and I am in need of some help or pointers in the right direction. I for one am not a web developer, I am going to school for computer science, but am not that skillful yet.
Okay back on topic, so I work for a non-profit, and I'm working on their SEO for the website. Doing research and figuring out what I need to add to the Drupal site, I contacted our web master, but he unfortunately cannot help anymore, and will relinquish the code and other information to me so I can find another Drupal Dev.
How difficult is it to upgrade a Drupal site that is this old?
How much time will it take?
How much will this cost?

Any and all help is appreciated!

I'm pretty tech savvy and I love to learn about anything and everything. I am also the technology and maintenance director for this non-profit.

CONTEXT: Through my research on SEO I learned I have to have metatags and schema metatags modules for the Drupal site. Our Drupal CMS version is 9.2.4 and in order to use metatags we have to have 10.3 or higher. Webmaster told me about this version conflict that I overlooked during my research, and also notified me that he can no longer do freelance work, due to his new contract with his employer.

submitted by /u/ILvFO76
[link] [comments]
❌