Skip to content

raizeta/BlogBundle

 
 

Repository files navigation

BlogBundle

A very simple blogbundle for symfony2. STILL A WORK IN PROGRESS

Can be seen live at http://branchbit.be/blog

Step 1: Download BBITBlogBundle using composer

Add BBITBlogBundle in your composer.json:

{
    "require": {
        "bbit/blog-bundle": "dev-master",
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update bbit/blog-bundle

Composer will install the bundle to your project's vendor/BBIT directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\BlogBundle\BBITBlogBundle(),
    );
}

Step 3: Config

bbit_blog:
    extend_template: 'AcmeWebsiteBundle:Default:layout.html.twig' //should contain a block called 'blogContent'
    disqus_shortname: 'AcmeBlog'
    addthis_pubid: 'ra-55cxxxxxxxxx648'
    btn_class: 'btn-buy hover-effect'
    eko_feed:
        feeds:
            post:
                title:       'Acme Blog Feed'
                description: 'Acme blog Feed Description'
                link:
                    route_name: bbit_blog_rss_view
                encoding:    'utf-8'

Step 4: Add content

A very simple limited admin-CRUD is located at /blog/admin/post.

Posts are rendered in markdown.

Step 4: View content

Blog is located at /blog.

Rss feed is located at /blog/rss.

Supports "Engage by Disqus" for comments.

Supports "AddThis" for sharing.

About

Simple blogbundle for symfony2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 51.8%
  • JavaScript 21.0%
  • HTML 18.7%
  • PHP 8.2%
  • Other 0.3%