Predefined blocks
Predefined content blocks instead of the Content field
Organization: ORG. TEND d.o.o.
Creator: Uroš Likar (theuros)
Screenshots
About Predefined blocks
predefinedBlocks replaces the Content field with a block editor: heading, text and images, table, list, video, wrapper/accordion and chunk/snippet/HTML. Developers restyle each block with a Fenom template in the theme; the rendered HTML is saved into content, so search and teasers keep working.
Requires pdoTools 3. Not for templates that use ContentBlocks.
All blocks have been fully tested and are functional.
Information
Released
November 28, 2026
Supported Database
MySQL
License
GPLv2
Instructions
Documentation: https://modx.tend.si/predefined-blocks
New in 0.8.0-beta
Beta release. Changes since 0.6.0-beta (includes 0.7.0-beta, which was not published here; see changelog.txt in the package for details).
Added
- Type picker for the Custom block. "Choose a block" opens a grid of all types with a preview image (or the icon), name and description, with a search field. A new Custom block opens it by itself when there is more than one type. Preview image:
<name>.png/.jpg/.webp/.gifnext to<name>.tpl, orpreview:in the header.group:in the header groups the types in the grid and in the dropdown. - Page picker for links. The link field of custom blocks and the link dialog of the small editor (table cells, list items) search pages by title, alias or ID and insert a live link
[[~ID]]; the linked page's title is shown under the field. - Undo delete. A deleted block can be restored until the page is saved.
- Collapsed cards are remembered per page (browser storage).
- Focal point for images. Click the image to mark the part that stays visible when it is cropped to an aspect ratio; templates get
{$img.focus}for CSS object-position. - Example custom block type "Files to download" (
downloads.tpl). The example types (call to action, pricing, downloads) have preview images and the group "Examples". - Alt text from mediaFal (optional): an image without its own alt text takes the alt text from the mediaFal library; templates also get
{$img.title}. Without mediaFal nothing changes.
Fixed
- CKEditor 4 fields were emptied when a card was moved (arrows, drag and drop).
- Firefox: a TinyMCE field (autoresize plugin) in a hidden tab or collapsed part of the editor had zero height when shown.