Skip to content

niklasnatter/SuluArticleBundle

 
 

Repository files navigation

SuluArticleBundle

Installation

Install bundle over composer:

composer require sulu/article-bundle

Add bundle to AbstractKernel:

new Sulu\Bundle\ArticleBundle\SuluArticleBundle(),
new ONGR\ElasticsearchBundle\ONGRElasticsearchBundle(),

Create required phpcr nodes:

app/console sulu:document:init

Configure the bundle:

sulu_route:
    mappings:
        Sulu\Bundle\ArticleBundle\Document\ArticleDocument:
            route_schema: /articles/{object.getTitle()}

ongr_elasticsearch:
    connections:
        default:
            index_name: su_articles
    managers:
        default:
            connection: default
            mappings:
                - SuluArticleBundle

Create elasticsearch index:

bin/console ongr:es:index:create

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 75.9%
  • JavaScript 21.5%
  • HTML 2.6%