infinite-software / sulu-articles-publisher-bundle
Sulu articles publisher bundle
Installs: 75
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- jackalope/jackalope-doctrine-dbal: ^1.2.5
- jackalope/jackalope-jackrabbit: ^1.2
- ongr/elasticsearch-bundle: 5.0.5
- sulu/article-bundle: ^0.7.1
- sulu/sulu: ~1.6.22
- symfony/symfony: ^3.4
- twig/extensions: ^1.0
This package is not auto-updated.
Last update: 2025-02-28 17:22:48 UTC
README
This bundle closely connected with sulu content import/export bundle (fork).
Its main purpose is to solve the problem with published sulu articles not being available in sulu content variable, after executed content dump import command (from fork): php bin/console sulu:import dir_name (Assuming you have already exported content of sulu before (from fork))
Requirements
Bundle is tested with PHP 7.1, Symfony 3.4, Sulu 1.6.
Installation
-
composer require infinite-software/sulu-articles-publisher-bundle
-
Modify AbstractKernel.php as always:
// app/AbstractKernel.php // ... class AbstractKernel extends SuluKernel { // ... public function registerBundles() { $bundles = array( // ... new InfiniteSoftware\Bundle\SuluArticlesPublisherBundle\SuluArticlesPublisherBundle(), ); // ... } }
-
Now you can publish articles with the command: php bin/console sulu:articles:publish
-
Then you should be able to see articles in content twig var, using for loop:
{% for article in content.articles %}
{% endfor %}