Predefined blocks

Predefined content blocks instead of the Content field

Organization: ORG. TEND d.o.o.
Creator: Uroš Likar (theuros)

Need help installing this extra?

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

Supported Versions
3.0 - Current

Downloads
16

Documentation
Predefined blocks Documentation

Instructions

  • Install pdoTools 3 first (required, block templates use Fenom).
  • Install predefinedBlocks and tick the templates that should use the block editor in the install form.
  • Choose the front-end styles: Plugin CSS (works without Bootstrap) or Bootstrap (your theme already loads Bootstrap 5.3).
  • Open a page with that template, click Add block and save.
  • To add your own sections, create custom block types: see Custom blocks in the documentation.
  • 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/.gif next to <name>.tpl, or preview: 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.

    Current releases

    0.8.0-beta
    View | Download
    November 28, 2026
    3.0 - Current

    0.7.0-beta
    View | Download
    November 10, 2026
    3.0 - Current

    0.6.0-beta
    View | Download
    November 2, 2026
    3.0 - Current

    0.5.0-beta
    View | Download
    November 1, 2026
    3.0 - Current

    0.2.0-beta
    View | Download
    October 12, 2026
    3.0 - Current