From 2c079088efbbbbca8196aa30a403e10f1569e995 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 24 Mar 2026 11:39:37 +0000 Subject: [PATCH] Update CLAUDE.md --- CLAUDE.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 03ecfa9..f0d0832 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -94,13 +94,14 @@ Do NOT modify web-base files — they are shared across all projects. 1. **Before working with any area (hooks, modules, templates, CSS/JS, etc.), read the corresponding documentation in `docs/` first.** Do not guess or assume — always consult the docs before taking action. 2. Only edit `index-base.tpl` in modules — `index.tpl`, `index-twig.tpl`, and `builder.json` are auto-generated -3. Use Twig **filters** (with `|`), never Twig functions -4. Table names without `cms_` prefix everywhere -5. Primary key is `num`, never `id` -6. Upload fields are arrays — access with `[0].urlPath` -7. Tailwind CSS as primary styling, custom CSS scoped with BEM when needed -8. Twig concatenation uses `~` operator: `'value=' ~ variable` -9. `enlace` (link) fields already include slashes +3. **After editing any `index-base.tpl`, ALWAYS call the `compile_module` MCP tool** to compile the module/section. This is mandatory — without compilation, changes won't take effect in the CMS. +4. Use Twig **filters** (with `|`), never Twig functions +5. Table names without `cms_` prefix everywhere +6. Primary key is `num`, never `id` +7. Upload fields are arrays — access with `[0].urlPath` +8. Tailwind CSS as primary styling, custom CSS scoped with BEM when needed +9. Twig concatenation uses `~` operator: `'value=' ~ variable` +10. `enlace` (link) fields already include slashes ## Documentation