Hidden Config Options

Note that the following config options are not officially supported because they alter the intended default behavior of Bloqs. If you experience visual or functional issues with these options you can submit a support ticket, but there are no guarantees it will be addressed.

Bloq Usage and Field Assignments

Beginning in Bloqs 4.4.0, when a bloq is assigned to a field, and is used in a saved entry, you can not remove the bloq's assignment from that field. Removing the assignment will cause the bloq to disappear from existing entries (this has always been the behavior). To prevent data loss, and to make it more clear how bloqs are being used, the checkboxes are now disabled by default if the bloq is used in an existing entry. Below is a screenshot of what it may look like. The "Used in X entries" informs you how many entries the bloq is being used in for the current field. You can click the link to view the entries the bloq is assigned to. If the bloq is assigned to multiple fields, then the usage report when you click the link may report a different value than what you see on this screen. That is because the usage report is cumulative across all fields.

The default behavior as of 4.4.0

To prevent disabling of these checkboxes and return to the pre-4.4.0 behavior, add the following value to your config.php file.

$config['bloqs_disable_strict_assignment'] = true;

Collapse bloqs when dragging

By default, when you are dragging and reordering bloqs on an entry page, if the bloq is expanded, then it will remain expanded when dragging it. To collapse all bloqs when dragging, add the following value to your config.php file.

$config['bloqs_collapse_on_drag'] = true;

Field Caching

You can optionally cache the output of a Bloqs field. Read more about it.

$config['bloqs_cache_enabled'] = true;