fix: update compile and git handlers for permission normalization
This commit is contained in:
@@ -38,11 +38,12 @@ Each module lives in `template/estandar/modulos/<moduleId>/` with:
|
||||
## Creating a Module — Full Workflow
|
||||
|
||||
1. **Read style reference** (steps above)
|
||||
2. **`create_module`** — Creates the directory with index-base.tpl, style.css, script.js and compiles. Use descriptive `moduleId` and clear `label`.
|
||||
3. **`add_module_to_record`** — Adds the module to a page. Response includes `sectionId` — use it directly in the next step.
|
||||
4. **`set_module_config_vars`** — Fill variables with content. Response includes `uploadFields` with `{ fieldName, recordNum }` for each upload variable.
|
||||
5. **Upload images** — Use `generate_image` then `upload_record_image` with the `recordNum` and `fieldName` from step 4's `uploadFields`. No need to read builder.json or call get_module_config_vars.
|
||||
6. **`navigate_browser`** — Navigate to the page so the user can see the result.
|
||||
2. **`acai-write`** — Create the module files directly (`index-base.tpl`, `style.css`, `script.js`, optional `hook.php`) using project-relative paths and complete file contents.
|
||||
3. **`compile_module`** — Compile after editing `index-base.tpl` so the CMS syncs the generated output.
|
||||
4. **`add_module_to_record`** — Adds the module to a page. Response includes `sectionId` — use it directly in the next step.
|
||||
5. **`set_module_config_vars`** — Fill variables with content. Response includes `uploadFields` with `{ fieldName, recordNum }` for each upload variable.
|
||||
6. **Upload images** — Use `generate_image` then `upload_record_image` with the `recordNum` and `fieldName` from step 5's `uploadFields`. No need to read builder.json or call get_module_config_vars.
|
||||
7. **`navigate_browser`** — Navigate to the page so the user can see the result.
|
||||
|
||||
## HTML Field Types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user