GithubHelp home page GithubHelp logo

branchbit / blogbundle Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 355 KB

Simple blogbundle for symfony2

License: MIT License

PHP 8.24% JavaScript 21.04% HTML 18.75% CSS 51.71% Ruby 0.25% Shell 0.01%

blogbundle's Introduction

BlogBundle

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

Can be seen live at http://branchbit.be/blog & http://statushka.com/blog

Step 1: Download BBITBlogBundle using composer

Add BBITBlogBundle in your composer.json:

{
    "require": {
        "knplabs/knp-markdown-bundle": "~1.3",
        "eko/feedbundle":  "dev-master",
        "bbit/blog-bundle": "dev-master"
    }
}

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

$ php composer.phar install

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

Step 2: Enable the bundles

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
        new Eko\FeedBundle\EkoFeedBundle(),
        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:

Update your database.

Add BBITBlogBundle to the assetic.bundle config

Add routing file:

bbit_blog:
    resource: "@BBITBlogBundle/Resources/config/routing.yml"
    prefix:   /blog/

Step 5: Add content

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

Posts are rendered in markdown.

Step 6: View content

Blog is located at /blog.

Rss feed is located at /blog/rss.

Supports "Engage by Disqus" for comments.

Supports "AddThis" for sharing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.