anomaly / blocks-module
Manage sections of content.
Installs: 2 314
Dependents: 9
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 7
Type:streams-addon
pkg:composer/anomaly/blocks-module
Requires
- anomaly/configuration-module: ^2.1
- anomaly/settings-module: ^2.1
- anomaly/streams-platform: ^1.10
- 1.5.x-dev
- v1.5.0
- 1.4.x-dev
- v1.4.0
- 1.3.x-dev
- v1.3.21
- v1.3.20
- v1.3.19
- v1.3.18
- v1.3.17
- v1.3.16
- v1.3.15
- v1.3.14
- v1.3.13
- v1.3.12
- v1.3.11
- v1.3.10
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- 1.2.x-dev
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- 1.1.x-dev
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- 1.0.x-dev
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.0
- dev-dependabot/npm_and_yarn/express-4.19.2
- dev-dependabot/npm_and_yarn/webpack-dev-middleware-and-laravel-mix-5.3.4
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.6
- dev-dependabot/npm_and_yarn/ip-1.1.9
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/browserify-sign-4.2.2
- dev-dependabot/npm_and_yarn/postcss-and-laravel-mix-8.4.32
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/babel/traverse-7.23.7
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/minimist-1.2.8
- dev-l8
This package is auto-updated.
Last update: 2025-12-04 02:06:35 UTC
README
anomaly.module.blocks
Manage sections of content.
The Blocks Module provides a powerful way to create and manage reusable content blocks with field-based configuration.
Features
- Field-based block content
- Area-based block organization
- Multiple instance support
- Control panel management
- Template integration
- Block caching
Usage
Defining Block Areas
// In your addon service provider protected $blocks = [ 'sidebar' => [ 'description' => 'Sidebar content blocks' ], 'footer' => [ 'description' => 'Footer content blocks' ] ];
Rendering Blocks
{# Render all blocks in an area #} {% for block in blocks('sidebar') %} {{ block.content|raw }} {% endfor %} {# Get specific block #} {% set block = block('contact_info') %} {% if block %} {{ block.content|raw }} {% endif %}
Creating Blocks
Navigate to Content > Blocks in the control panel to create and manage blocks.
Requirements
- Streams Platform ^1.10
- PyroCMS 3.10+
- Configuration Module ^2.1+
- Settings Module ^2.1+
License
The Blocks Module is open-sourced software licensed under the MIT license.