ajustes
This commit is contained in:
14
CLAUDE.md
14
CLAUDE.md
@@ -48,6 +48,16 @@ Visual components that the site builder uses. Each module is a self-contained un
|
||||
|
||||
See [docs/modular-system.md](docs/modular-system.md) for detailed rules.
|
||||
|
||||
### Pages
|
||||
Every record with an `enlace` field is a page. Pages are either **Builder** (modular) or **Standard**:
|
||||
|
||||
- **Builder**: `controlador` = `cms/lib/plugins/builder_saas/controlador.php` — content via modules
|
||||
- **Standard**: `controlador` = `cms/lib/plugins/builder_saas/controlador_tabla.php` — content in record fields
|
||||
|
||||
**Critical**: Never change `enlace` or `controlador` of existing pages unless explicitly asked.
|
||||
|
||||
See [docs/pages-and-records.md](docs/pages-and-records.md) for full details.
|
||||
|
||||
### General Sections
|
||||
Database-backed templates (headers, footers, record views) that use the `thisrecord` variable to access record fields. They use the same Twig + Acai attribute engine as modules.
|
||||
|
||||
@@ -102,7 +112,8 @@ Do NOT modify web-base files — they are shared across all projects.
|
||||
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
|
||||
10. `enlace` (link) fields already include slashes — **NEVER modify an existing enlace** unless explicitly asked
|
||||
11. **NEVER modify the `controlador` field** of existing records — it defines whether a page is Builder or Standard
|
||||
|
||||
## MCP Tools
|
||||
|
||||
@@ -127,4 +138,5 @@ Key workflows:
|
||||
- [docs/production-patterns.md](docs/production-patterns.md) — Real production patterns (header, zigzag, FAQ, forms)
|
||||
- [docs/vue-builder-rules.md](docs/vue-builder-rules.md) — CMS-VUE rules (tabs, colorpicker, components)
|
||||
- [docs/vue-builder-examples.md](docs/vue-builder-examples.md) — Vue builder examples (Banner Slideshow, etc.)
|
||||
- [docs/pages-and-records.md](docs/pages-and-records.md) — Page types (Builder vs Standard), sections, visibility, critical rules
|
||||
- [docs/mcp-tools-reference.md](docs/mcp-tools-reference.md) — MCP tools reference, available tools, workflows
|
||||
|
||||
Reference in New Issue
Block a user