Code Monkey home page Code Monkey logo

cakephp-blog-plugin's Introduction

CakePHP Blog Plugin

A CakePHP blog plugin for CakePHP2.0+

Features

  • Blog posts ** Paginated across all filter types (see below) ** Sticky flag ** In/out RSS feed flag
  • Filter by ** Categories (HABTM, hierarchy, only shows categories with posts in, displays number of posts in each category or one of its children) ** Tags (HABTM, including tag cloud) ** Year/month archive (based on created date/time, only shows months with posts in, grouped by year, displays number of posts in each month)
  • RSS for all posts, or posts in a particular category or tag
  • Settings ** Meta title, description, keywords for the unfiltered list and filtered by archive list

Customisations

Create custom views in your app directory e.g. app/View/Plugin/Blog/BlogPosts/index.ctp

Requirements

Installation

git submodule add git://github.com/neilcrookes/CakePHP-Blog-Plugin.git app/Plugin/Blog

or download from http://github.com/neilcrookes/CakePHP-Blog-Plugin

Add the following line to your /app/config/bootstrap.php

CakePlugin::load( array( 'Blog' => array( 'routes' => True ) ) );

And add this line to /app/config/routes.php

CakePlugin::routes('Blog'); // Load Blog plugin routes

Run the SQL script in Blog/Config/chema/schema.sql

Go to mydomain.com/blog

See:

  • mydomain.com/admin/blog_posts for creating blog posts (and follow links to create the tags and categories first)
  • mydomain.com/admin/blog_settings for editing the settings (things like the index page title and RSS feed title etc)

(Requires that your Routing.prefixes includes 'admin')

To-do

  • Custom blog post content implementations
  • Internationalisation
  • Improve the admin interface

All contributions welcome and will be attributed

Copyright

Copyright Neil Crookes 2011

License

The MIT License

cakephp-blog-plugin's People

Contributors

neilcrookes avatar ryanjohnston avatar

Watchers

 avatar

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.