pushword/snippet

Reusable, editor-owned content fragments and dev-registered components for Pushword CMS.

Maintainers

Package info

github.com/Pushword/snippet

Homepage

Type:symfony-bundle

pkg:composer/pushword/snippet

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0-rc649 2026-06-02 10:42 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

Content & workflow

Publishing & performance

Tooling

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.

PHP Packages Open Source