Update CLAUDE.md
This commit is contained in:
15
CLAUDE.md
15
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.
|
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
|
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
|
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. Table names without `cms_` prefix everywhere
|
4. Use Twig **filters** (with `|`), never Twig functions
|
||||||
5. Primary key is `num`, never `id`
|
5. Table names without `cms_` prefix everywhere
|
||||||
6. Upload fields are arrays — access with `[0].urlPath`
|
6. Primary key is `num`, never `id`
|
||||||
7. Tailwind CSS as primary styling, custom CSS scoped with BEM when needed
|
7. Upload fields are arrays — access with `[0].urlPath`
|
||||||
8. Twig concatenation uses `~` operator: `'value=' ~ variable`
|
8. Tailwind CSS as primary styling, custom CSS scoped with BEM when needed
|
||||||
9. `enlace` (link) fields already include slashes
|
9. Twig concatenation uses `~` operator: `'value=' ~ variable`
|
||||||
|
10. `enlace` (link) fields already include slashes
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user