Skip to content

🚀 What is PageBlocks

PageBlocks is not just an add-on, but a full-fledged data and interface management platform for MODX.
It allows developers to build project architecture from controllers, tables, blocks, and templates, while managers can fill the site without involving a programmer.

PageBlocks is for everyone:

  • 🧑‍💼 Managers – simple and intuitive interface. Pages are assembled from ready-made blocks that can be edited, copied, reordered, and published.
  • 👨‍💻 Beginner developers – blocks, tabs, tables, and fields can be configured directly in the admin panel, no coding required.
  • 🧑‍💻💻 Professional developers – full control via IDE: controllers, routes, templates, and files. Projects become predictable and scalable.

🌟 Key Features

🧩 1. Page builder with blocks

Pages are assembled from pre-built blocks, like LEGO bricks.
Managers simply select the needed blocks, rearrange them, and fill in content—no coding required.

🖥️ 2. Easy admin panel workflow

Create blocks, tables, fields, tabs, panels, and menus directly in the interface—without writing code.
Perfect for beginner developers.

💻 3. Full code control

Pros can define everything via files and IDE: blocks, templates, controllers, routes, validation rules, API.
The component doesn’t limit but extends possibilities.

🧠 4. Intuitive interface

Everything in one place: blocks, tables, pages, translations.
No unnecessary tabs or complex configurations.

⚡ 5. Fast website deployment

No need to reinvent the wheel every time.
Create landing pages, catalogs, and websites 2–3 times faster than with traditional MODX templating.

🧱 6. Full compatibility with MODX 2 & 3

Works on MODX 2.8 and MODX 3.x.
Migration between core versions—painless and without rewrites.

🛠️ 7. Flexible field types

PageBlocks provides 39 different field types—from simple text and images to galleries, selects, checkboxes, and relations.
Fields can be repeated, grouped, made conditional, and even embed tables inside blocks—offering flexibility for any interface.

🔄 8. Built-in pagination, filtering & multilingual support

Filters, lists, language versions, translations—all included.
No extra components needed.

🔧 9. Modularity & reusability

Blocks can be reused across different pages and projects.
Write once—use everywhere.

🧾 10. Built-in Fenom templating

Fenom support is included out of the box. Use @INLINE, @FILE, or directly in chunks. Example:

php
{foreach $items as $item}
  <div class="product">{$item.title}</div>
{/foreach}

� 11. Query Builder

Allows building database queries concisely and safely. Works in Fenom templates:

php
{foreach query('modResource')->where(['template' => 4])->sortBy('menuindex')->get() as $page}
	<a href="{$page->get('uri')}">{$page->get('pagetitle')}</a>
{/foreach}

⚡ 12. pbFetch – Painless AJAX

A native JavaScript class for sending GET, POST, PUT, DELETE requests without page reloads.
Works with declarative attributes like pb-form, pb-trigger, pb-target, etc.

📊 13. Flexible UTM Tag Handling

PageBlocks allows you to control block visibility based on UTM tags. This can be configured either via the admin interface or in code (developer mode). Ideal for personalization, marketing, and A/B testing.

🛡️ 14. Security at all levels

CSRF, access rights, validation, SQL injection protection—all built-in and preconfigured.

🚀 15. Continuous development

The component is actively evolving: new features, improvements, documentation.
PageBlocks is not a one-time module but a long-term solution.

🎯 Conclusion

PageBlocks is a stable, flexible, and scalable tool that eliminates routine work.
If you build sites on MODX—install it first.
It will save days or weeks of work—for both managers and developers.

🛠️ Support

  • Version: 2.8.1-pl
  • MODX Support: 2 / 3
  • PHP Support: 7.4 – 8.3
  • Author: Boshnik

🐞 Report an Issue

If you find a bug in PageBlocks, create an issue in the GitHub repository.

For website issues or help with setup, email pageblocks@boshnik.com.

© PageBlocks 2019-present