Conn2Flow
Docs navigation

Reference / Modules

admin-templates module

Creation and maintenance of HTML templates for Gestor resources.

Path in the Gestor modulos/admin-templates/

This module manages reusable content templates consumed by other resources, especially pages and publishers. A template combines a target, HTML, extra head content, CSS, framework, and thumbnail; it is not a published page on its own.

How to use

Open admin-templates/ to list records. Create at admin-templates/adicionar/, edit at admin-templates/editar/?id=<slug>, or duplicate at admin-templates/clonar/?id=<slug>. Set the target, name, slug, thumbnail, and framework, then edit HTML/CSS. A consuming resource must select an active template in the matching language. All four routes exist in pt-br and en.

Technical reference

The controller handles adicionar, editar, and clonar; the shared interface supplies listing, status, and deletion. The AJAX switch has no active case. Saving converts text markers to internal references, computes css_source_hash, records history and content backups on edit, and increments the version. Cloning copies content and metadata into a new record. admin_templates_alvo_ia() looks up or checks a target for the AI editor integration.

The templates table has numeric id_templates, nome, id, target, thumbnail, plugin, language, html, html_extra_head, css, css_compiled, framework_css, status, versao, dates, update flags, and file/checksum metadata. The migration's unique key is (id, language), without target. Later migrations add precompiled CSS, project, and source-hash fields. The module JSON defines no widget, hook, or hooks.api; consumers query templates by language, target, and status.

Confirmed limitations

See also

The Future is Hybrid: Human + AI.

Conn2Flow is the tool. If you need the Architect to design your company's strategy using this technology...

Hire Specialized Consulting