Reading view

Weird debugging js library problem

EDIT: the problem was a different script had some kind of runtime error. I’m not a great front end dev, but from some quick googling, it looks like when an unhandled runtime error happens earlier in the script, it causes the rest of the script to not run? Anyway, changing the name of the library maybe changed the order in which they were aggregated. Such a bizarre thing.

This is the most bizarre bug I’ve ever seen.

I have a library that simply refuses to attach, even if I attach it, call it mytheme/slibrary

If I declare the library as a dependency of another library, and attach that library, it works just fine. But if I attach slibrary directly, nothing.

The bizarre thing is, if I change the library name to anything that does not begin with an s, it loads just fine. But if I change this library to anything that begins with an s, nothing.

I’ve cleared and disabled every cache I can. I’ve attached it through render arrays, preprocessing, and in the twig file. Nothing.

The only thing that works is changing the name to something that begins with a different letter, or declaring that library as a dependency on something else, and attaching the something else.

I am utterly perplexed. I’m not very good at deeply debugging the render pipeline, so I have no idea where I’d attach a breakpoint to step through things.

I guess I’ll change the name of the library, but i wish I knew what the hell was happening.

Things work fine when js aggregation is off; it’s only a problem with js aggregation on.

I also cannot replicate this on any other install of Drupal I have access to.

Any ideas for where to debug?

submitted by /u/Ready_Anything4661
[link] [comments]
  •  

Normal hierarchical select: For goodness sake I need to develop this by myself?

Really, help me guys, Hierarchical select to taxonomy , that looks normal, and and allows all nested terms to be selected when parent is selected. Preferably accordion display, but really, just something.

Why is this so hard to find???

submitted by /u/Distinct-Writer-3906
[link] [comments]
  •  

Exploring AI-Powered Drupal Templates in the Cloud

Exploring AI-Powered Drupal Templates in the Cloud

I’ve been experimenting with ways to integrate AI into Drupal without dealing with local setup headaches.
Turns out, there’s a growing library of AI-powered Drupal templates that run entirely in the cloud — things like:

  • Drupal Module Finder AI – recommends modules based on what you want to build
  • Drupal Canvas + AI – AI-assisted page builder
  • Agentic Testing Framework – uses AI to auto-test your Drupal site
  • LocalGov + AI – explores civic-focused AI use cases …and many more.

Everything runs in the browser (Composer, Drush, and VS Code pre-installed), so you can launch a working Drupal instance in seconds to explore AI use cases.

Here’s the link if you want to poke around: drupalforge.org/ai

Curious if anyone else here has tried AI inside Drupal yet — what use cases do you think actually make sense?

https://preview.redd.it/76u53jnb63xf1.png?width=1643&format=png&auto=webp&s=483e4696af14737b7321dea13a953d807836d57a

submitted by /u/DrupalForge
[link] [comments]
  •  

How to add a video file once uploaded to medial library

Might be a dumb question but I'm stuck.

I've got a youtube video I want to embed on one one our drupal pages. I've uploaded the video from Content -> Media -> Add Media -> Remote Video

But when I go to one of my basic pages, I can't find any option to add a video of any kind, remote or local...is this an issue with my user permissions?

submitted by /u/SalamanderPerfect808
[link] [comments]
  •  
❌