Data structure

Data model

A single table, freshapphtmleverywhere, with a unique key (hook_name, id_shop) that limits it to one block per hook and per shop.

ColumnRole
id_blockAuto-incremented id.
hook_nameName of the targeted display hook (e.g. displayHome).
id_shopThe shop it belongs to.
html_contentThe block's HTML content, required.
css_contentOptional CSS, written to a static file.
js_contentOptional JS, written to a static file.
use_rteBlock edited in TinyMCE (1) or raw code (0).
activeBlock rendered (1) or skipped (0) on the storefront.
Loading...
Back to top