r/drupal

▲ 5 r/drupal

How to prepare Drupal CMS for local development and make it deployable?

Hey, let's say I initiated new Drupal project locally using official ddev instructions. Smooth and clean experience, all good. Now, what to do next? I would like to start develop - turn off twig and any other caching, enable debugging, ensure that .gitignore is prepare for a composer-managed project, configure config_sync_directory so i can store entire site configuration in a git.

Nothing special I would say - just a normal way of working on a stuff as a developer, while keeping the best practices.

And the question is: Where I can find some official docs so I do not have to use a tribal knowledge or guess whether I configured my gitignore, settings and services files correctly? Where i can read such an infos like why there is a dot in third line of .gitignore, after /vendor.?

Did I missed something or this part is not well documented?

reddit.com
u/Firflant — 1 day ago
▲ 20 r/drupal

HTML5 validation will be disabled in Drupal 12

Recently I audited a Drupal codebase containing a lot of custom form code and the author relied upon front-end validation way too often. You always want to validate form submissions server-side as well. I'm posting this because I sense that this change in Drupal 12 may prove impactful for many sites. Check your form validation code!

drupal.org
u/aaronsilber — 2 days ago
▲ 2 r/drupal

Advice how to move content from one Drupal instance to another

Hi, I really would appreciate advice on a Drupal challenge I face. I'm managing the Drupal website of my orchestra, it started on version 10 and was recently upgrade to 11 by the DirectAdmin maintenance of the provider. Since the upgrade the site is unstable - running composer yields many pages of patches/upgrades after which the site breaks down completely.

As a solution I now setup a fresh v11 site that works fine.

The only small workload left is to export/import the content from the old site to the new one.

This is my first experience with a CMS platform - but have 20 years experience with self-built dynamic websites. For these, contents and platform are nicely separated and can be exported/import with little hassle.

I suppose Drupal also stores the contents (pages/articles) separated from the platform and that export/import should be breeze. However, I failed to find the protocol for this. Am I too naive ? Which tables have the contents ? Which cross-references should be updated after import ?

Thanks in advance for your advice and suggestions

reddit.com
u/Pristine-Hall-1500 — 5 days ago
▲ 9 r/drupal+1 crossposts

AI rewards strict APIs

I wrote a blog post about why AI agents struggle with loose APIs (magic strings, untyped hooks, unvalidated configuration) more than humans do.

The post uses Drupal and WordPress as examples, but the argument applies to any framework on the strict-to-loose spectrum.

https://dri.es/ai-rewards-strict-apis

reddit.com
u/DriesBuytaert — 4 days ago
▲ 15 r/drupal

Building a Feature-Rich Frontpage: Comparison of Canvas and Display Builder (Part 3)

Creating and editing a Frontpage or flexible Landing Page has always been a struggle in Drupal. Layout Builder has been left unfinished and (layout_)paragraphs is quite an investment upfront. Now that we have SDCs, we can reuse components and the best of all: Two major Drupal page builders are reaching maturity quickly: Canvas and Display Builder.

This is the third part of or Canvas vs Display Builder series that covers the three most prolific use cases we could think of. But pretty sure it will not be the last part!

https://www.hook-dev-alter.com/en/articles/build-feature-rich-frontpage-drupal-canvas-vs-display-builder-part-3

u/Andi-HOOK_DEV_ALTER — 3 days ago
▲ 4 r/drupal

Drupal (AI) Playground: Using the AI Schema.org JSON-LD module to "feed the machines"

Learn about my new AI Schema.org JSON-LD module, which generates structured data to "feed the machines"

jrockowitz.com
u/jrockowitz — 3 days ago
▲ 7 r/drupal

Cloud storage and image styles

Has anyone successfully managed to use cloud storage with flysystem and S3 or Google Cloud Storage without the performance trade-off when generating image styles? My experience was terrible, even with image styles warmer module. The application heavily uses images and multiple image styles in addition to responsive images, which generate multiple resolutions per image.

reddit.com
u/Stunning_Divide4298 — 5 days ago
▲ 1 r/drupal

Still writing custom hooks for simple Drupal automation? you need to see this.

[not a promotion] One of the developers on our team just wrapped up a deep-dive webinar on how we’re using the ECA (Event - Condition - Action) module alongside Drupal's new AI features.

If you've ever felt like you're writing too much custom code for simple entity triggers or workflow logic, this is definitely worth a look. The session walks through how to build visual automation models that can trigger AI actions (like auto-tagging or content analysis) without touching a custom module.

Check out the full session here: https://youtu.be/uSEYJ5TiCcE

We’ve been moving more of our production logic over to ECA lately to keep things maintainable. Curious to hear if anyone else is using ECA + AI in their current projects, or if you’re still sticking to custom hooks for complex logic?

u/Familiar-Ad-2878 — 4 days ago
▲ 33 r/drupal

How old and outdated are Drupal (J)obs?

G+ was discontinued in 2019?

u/mattmk — 9 days ago
▲ 2 r/drupal

Following up on an older post: building Drupal through AI

A while ago someone on this sub posted about an AI exclusively for building Drupal sites that could do anything like modules, bug fixes, full builds, the whole site build. It stuck with me, as Drupal is pitched as a way for non-tech people to build websites with but getting to that point requires tech skills to lay the foundation.

Can see my previous posts about my progress so far (basically able to get a custom Drupal site running in ddev just from prompts) but wanted to pause and get some feedback from people who'd actually use this:

- Is chat the right interface, or would you rather have something more structured (wizards, forms, config-driven)?

- Where's your "doing this myself" line drawn? Content modeling? Custom entities? Views? Theming?

- If generic LLMs + your own workflow already cover 80% of this, what would the remaining 20% need to look like?

Just want to know if this is worth finishing or if most of you have already solved this with Cursor/Claude Code and I'm building a solution to a shrinking problem.

reddit.com
u/jrya7 — 8 days ago
▲ 6 r/drupal

How is theme update handled with Drupal CMS site templates?

I have always created my own themes. This time, I am thinking of using the Mercury theme that comes with Drupal CMS. I am not sure how the theme updates are handled later with the themes that come with site templates. If I use Mercury and make changes, should I be worried if the updates can break my changes later? Should I create a sub-theme, or can I use Mercury directly without worrying about updates?

reddit.com
u/Sandesh-Yadav — 10 days ago
▲ 3 r/drupal

Native AI translation in TMGMT: How to automate workflows without losing context or layout integrity

Hi everyone,

If you’ve managed large multilingual Drupal sites, you know the TMGMT module is a good way to go, but the actual translation process (especially with AI) can still feel a bit disconnected from the site's context.

We built an integration that lives directly inside TMGMT. The goal was to solve three specific issues:

  1. Context: Choosing between 'Faithful', 'Fluid', or 'Creative' styles based on the content type.
  2. Consistency: Using translation memories and glossaries so the AI doesn't hallucinate brand terms.
  3. Layout: Ensuring the translated strings don't break your site's design.

We’re hosting a live, hands-on session on May 7th at 11 AM CEST to show the technical setup and how it handles complex nodes.

Registration (Free): https://laratranslate.com/webinar-lara-translate-sparkfabrik

Roberto Peruzzo from Sparkfabrik will be there to dive into the dev side of things. If you have questions about TMGMT provider configurations or AI localization workflows, feel free to drop them here or join us live!

u/LaraTranslate — 8 days ago