pushword / snippet
Reusable, editor-owned content fragments and dev-registered components for Pushword CMS.
Requires
- dev-main / 1.0.x-dev
- 1.0.0-rc649
- 1.0.0-rc648
- 1.0.0-rc647
- 1.0.0-rc646
- 1.0.0-rc645
- 1.0.0-rc644
- 1.0.0-rc643
- 1.0.0-rc642
- 1.0.0-rc641
- 1.0.0-rc640
- 1.0.0-rc639
- 1.0.0-rc638
- 1.0.0-rc637
- 1.0.0-rc636
- 1.0.0-rc635
- 1.0.0-rc634
- 1.0.0-rc633
- 1.0.0-rc632
- 1.0.0-rc631
- 1.0.0-rc630
- 1.0.0-rc629
- 1.0.0-rc628
- 1.0.0-rc627
- 1.0.0-rc626
- 1.0.0-rc625
- 1.0.0-rc624
- 1.0.0-rc623
- 1.0.0-rc622
- 1.0.0-rc621
- 1.0.0-rc620
- 1.0.0-rc618
- 1.0.0-rc617
- 1.0.0-rc616
This package is auto-updated.
Last update: 2026-06-04 14:08:07 UTC
README
Editor-owned reusable content fragments and developer-registered components for Pushword, invoked from page content with a single Twig function.
Features
- Content snippets: reusable Markdown owned by the editor (CTA, author box, footer note), one row per host/locale.
- Component snippets: dev-registered components with a parameter schema and a Twig template.
- One call for both:
{{ snippet('name', {params}) }}, with host/global fallback resolution. - Editable from the admin, as flat files, and translatable per host.
Installation
composer require pushword/snippet php bin/console doctrine:schema:update --force
Usage
{{ snippet('footer-note') }}
{{ snippet('cta', { title: 'Ready to start?', buttonText: 'Contact us' }) }}
Documentation
See pushword.piedweb.com/extension/snippet.
The Pushword ecosystem
Pushword is a modular CMS — one Symfony bundle for the core and one bundle per feature. Pick only what you need:
Core
- pushword/core — Symfony-based CMS core: Page, Media & User entities, Markdown + Twig rendering.
Editing & admin
- pushword/admin — EasyAdmin interface to manage pages, media and users.
- pushword/admin-block-editor — Gutenberg-like block editor (stores Markdown).
- pushword/advanced-main-image — Hero images & main-image format control.
- pushword/template-editor — Edit Twig templates online.
- pushword/snippet — Reusable content fragments & components. (this package)
Content & workflow
- pushword/flat — Flat-file (Markdown + Git) CMS mode.
- pushword/version — Page & snippet versioning.
- pushword/page-update-notifier — Email alerts on content changes.
- pushword/conversation — Comments, contact & newsletter forms.
Publishing & performance
- pushword/static-generator — Export a static website (GitHub Pages, Apache, FrankenPHP).
- pushword/search — SQLite full-text search (Loupe), zero infra.
- pushword/page-scanner — Find dead links, 404s, redirects & TODOs.
- pushword/api — Token-authenticated REST API.
Tooling
- pushword/installer — Project & package installer.
- pushword/js-helper — Front-end JavaScript helpers.
Full list and guides on pushword.piedweb.com/extensions.
Contributing
If you're interested in contributing to Pushword, please read our contributing docs before submitting a pull request.
Credits
License
The MIT License (MIT). Please see License File for more information.