Download the PHP package manuxi/sulu-news-bundle without Composer
On this page you can find all versions of the php package manuxi/sulu-news-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download manuxi/sulu-news-bundle
More information about manuxi/sulu-news-bundle
Files in manuxi/sulu-news-bundle
Package sulu-news-bundle
Short Description Say hello to Sulu news!
License MIT
Homepage https://github.com/manuxi/SuluNewsBundle
Informations about the package sulu-news-bundle
SuluNewsBundle!
I made this bundle to have the possibility to manage news in my projects without the dependency to elasticsearch.
This bundle contains
- Several filters for News Content Type
- Link Provider
- Sitemap Provider
- Handler for Trash Items
- Handler for Automation
- Possibility to assign a contact as author
- Twig Extension for resolving news / get a list of news
- Events for displaying Activities and more...
The news and their meta information is translatable.
It contains an example twig template.
Please feel comfortable submitting feature requests. This bundle is still in development. Use at own risk ๐ค๐ป
๐ฉ๐ปโ๐ญ Installation
Install the package with:
If you're not using Symfony Flex, you'll also
need to add the bundle in your config/bundles.php
file:
Please add the following to your routes_admin.yaml
:
Last but not least the schema of the database needs to be updated.
Some tables will be created (prefixed with app_):
news, news_translation, news_seo, news_excerpt
(plus some ManyToMany relation tables).
See the needed queries with
Update the schema by executing
Make sure you only process the bundles schema updates!
๐ฃ Usage
First: Grant permissions for news. After page reload you should see the news item in the navigation. Start to create news. Use smart_content property type to show a list of news, e.g.:
Example of the corresponding twig template for the news list:
Since the seo and excerpt tabs are available in the news editor, meta information can be provided like it's done as usual when rendering your pages.
๐งถ Configuration
There exists no configuration yet. I'm on it :)
๐ฉโ๐ณ Contributing
For the sake of simplicity this extension was kept small. Please feel comfortable submitting issues or pull requests. As always I'd be glad to get your feedback to improve the extension :).
All versions of sulu-news-bundle with dependencies
phpcr/phpcr-migrations-bundle Version ^1.6
sulu/sulu Version ^2.5
sulu/automation-bundle Version ^2.1
symfony/config Version ^6.2 | ^7.0
symfony/dependency-injection Version ^6.2 | ^7.0
symfony/framework-bundle Version ^6.2 | ^7.0
symfony/http-foundation Version ^6.2 | ^7.0
symfony/http-kernel Version ^6.2 | ^7.0
symfony/intl Version ^6.2 | ^7.0
symfony/translation Version ^6.2 | ^7.0
symfony/security-core Version ^6.2 | ^7.0
twig/intl-extra Version ^3.9
twig/extra-bundle Version ^3.12