Editor-owned reusable content fragments and developer-registered components for Pushword, invoked from page content with a single Twig function.
- 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.
composer require pushword/snippet
php bin/console doctrine:schema:update --force{{ snippet('footer-note') }}
{{ snippet('cta', { title: 'Ready to start?', buttonText: 'Contact us' }) }}See pushword.piedweb.com/extension/snippet.
Pushword is a modular CMS — one Symfony bundle for the core and one bundle per feature. See the full list and guides at pushword.piedweb.com/extensions.
If you're interested in contributing to Pushword, please read our contributing docs before submitting a pull request.
The MIT License (MIT). Please see License File for more information.