pushword/snippet
最新稳定版本:1.0.0-rc656
Composer 安装命令:
composer require pushword/snippet
包简介
Reusable, editor-owned content fragments and dev-registered components for Pushword CMS.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-25