The Unofficial Selection
KnpLabs is hiring
Symfony2 developers!

Infos

Keywords

sonata blog news

Score evolution

Score details ( ? )

  • Github Followers: 75
  • Last 30 days activity: 1.8
  • README file size: 5
  • Uses Travis CI: 0
  • Travis CI build status: 0
  • Provides a composer package: 5
  • KnpBundles recommendations: 10

Latest commits

  • Merge pull request #66 from oparadis/jenkins
    By rande 21 days ago
  • Add build process for jenkins integration
    By oparadis 21 days ago
  • Rename method
    By rande 25 days ago
  • Add translation for admin top bar menu
    By rande 25 days ago
  • Fix regression
    By rande 1 month ago
  • Merge pull request #64 from benlumley/2.0
    By rande 1 month ago
  • Fixed incorrect field type in mongodb schema - causes 'Invalid type specified - integer' on cache warmup - they should be int. IamPersistent has already corrected a couple of these - see f369e6b081f97bed3633ff7a30af9d7abc8c688b. So merge me quick please :)'
    By benlumley 1 month ago
  • Merge pull request #59 from edwines/2.0
    By rande 1 month ago
  • Enabled the underscore strategy
    By edwines 1 month ago
  • Add missing dependency
    By rande 1 month ago
100

SonataNewsBundle by sonata-project

A news/blog system

SonataNewsBundle

A blog platform based on Doctrine2 and Symfony2.

Installation

  • Add SonataNewsBundle to your src/Bundle dir

    git submodule add git://github.com/sonata-project/SonataNewsBundle.git vendor/bundles/Sonata/NewsBundle
    git submodule add git://github.com/sonata-project/SonataMediaBundle.git vendor/bundles/Sonata/MediaBundle
    git submodule add git://github.com/sonata-project/SonataUserBundle.git vendor/bundles/Sonata/UserBundle
    git submodule add git://github.com/FriendsOfSymfony/FOSUserBundle.git vendor/bundles/FOS/UserBundle
    
  • Add SonataNewsBundle to your application kernel

    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Sonata\NewsBundle\SonataNewsBundle(),
            new Sonata\UserBundle\SonataUserBundle(),
            new Sonata\UserBundle\SonataMediaBundle(),
            new FOS\UserBundle\FOSUserBundle(),
            // ...
        );
    }
    
  • Run the easy-extends command

    php app/console sonata:easy-extends:generate SonataNewsBundle
    php app/console sonata:easy-extends:generate SonataUserBundle
    php app/console sonata:easy-extends:generate SonataMediaBundle
    
  • Enable the new bundles

    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Application\Sonata\NewsBundle\SonataNewsBundle(),
            new Application\Sonata\UserBundle\SonataUserBundle(),
            new Application\Sonata\UserBundle\SonataMediaBundle(),
            // ...
        );
    }
    
  • Complete the FOS/UserBundle install and use the Application\Sonata\UserBundle\Entity\User as the user class

  • Add SonataNewsBundle routes to your application routing.yml

    # app/config/routing.yml
    news:
        resource: '@SonataNewsBundle/Resources/config/routing/news.xml'
        prefix: /news
    
  • Add a new context into your sonata_media configuration

    news:
        providers:
            - sonata.media.provider.dailymotion
            - sonata.media.provider.youtube
            - sonata.media.provider.image
    
        formats:
            small: { width: 150 , quality: 95}
            big:   { width: 500 , quality: 90}
    
  • 2012-04-19 Menthe Alow

    Why don't you make Simple bundles ? A news bundle have to be simple.. I can see many and many requirements on your bundle ! It's not usable at all. Just the thing: "Complete the FOS/UserBundle install and use the Application\Sonata\UserBundle\Entity\User as the user class" Wtf bbq ? I've already have my own implantation of FOSUser. I just want to show news. Not to do a BBQ Multi-User Alt-F4 with a Linux Kernel inside! xD Thanks ^^

  • 2012-03-24 David Silveira

    For some reason this installation guide doesn't work (for at least), I mean, I've tried following step by step but I ran into some problems. Someone of you found a way to make it works?
    Thanks!

  • 2012-01-18 rfanjul

    Doesn't work for me. Sorry, but the documentation is not enough.

  • 2011-11-25 wodor wodorski

    It's quite a long journey to run this from symfony-standard you can start from adding these bundles to deps (and autoload, and appKernel):

    [FOSUserBundle]
    target=/bundles/FOS/UserBundle
    git=git://github.com/FriendsOfSymf...
    [SonataNewsBundle"]
    target=/bundles/Sonata/NewsBundle
    git=git://github.com/sonata-projec...
    [SonataMediaBundle"]
    target=/bundles/Sonata/MediaBundle
    git=git://github.com/sonata-projec...
    [SonataUserBundle"]
    target=/bundles/Sonata/UserBundle
    git=git://github.com/sonata-projec...
    [SonataFormatterBundle]
    git=https://github.com/sonata-proj...
    target=/bundles/Sonata/FormatterBundle
    [SonataAdminBundle]
    git=https://github.com/sonata-proj...
    target=/bundles/Sonata/AdminBundle
    [SonataDoctrineORMAdminBundle]
    git=http://github.com/sonata-proje...
    target=/bundles/Sonata/DoctrineORMAdminBundle
    [KnpMenu]
    git=https://github.com/knplabs/Knp...
    target=/knp/menu
    [KnpMenuBundle]
    git=git://github.com/knplabs/KnpMe...
    target=/bundles/Knp/Bundle/MenuBundle

    [KnpMarkdownBundle]
    git=git://github.com/knplabs/KnpMa...
    target=/bundles/Knp/Bundle/MarkdownBundle

    [SonataEasyExtendsBundle]
    git=https://github.com/sonata-proj...
    target=/bundles/Sonata/EasyExtendsBundle

    [gaufrette]
    git=https://github.com/sonata-proj...
    target=/gaufrette

    [imagine]
    git=https://github.com/avalanche12...
    target=/imagine

  • 2011-08-27 Wiyarmir

    You forgot to add the autoloader.php namespace, and the bundle namespace of MediaBundle is wrong