tdBlogPlugin - 0.1.6

Provides basic blog functionalities.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Dependencies Releases Changelog Contribute
Show source | Show as Markdown

tdBlogPlugin

The tdBlogPlugin provides basic blog functionalties.

This plugin is a part of TD CMF and is based on Doctrine ORM.

Installation

Install the plugin via the subversion repository by executing the following command from the project root directory:

$ svn co http://svn.symfony-project.com/plugins/tdBlogPlugin/trunk plugins/tdBlogPlugin

or by using the default symfony plugin install command:

$ ./symfony plugin:install -s beta tdBlogPlugin

as the actual release is in its beta stage.

Usage

  • Enable the tdSampleArticle module in your frontend application's config/settings.yml enabled_modules section:

    enabled_modules: [tdSampleArticle ]( ...,)
  • Fixtures are provided with the plugin - randomly generated data. Run the following commands:

    $ ./symfony doctrine:build --all
    

    and

    $ ./symfony doctrine:data-load
    

    Now you have to create a directory for video uploads:

    $ mkdir web/uploads/td/blog
    

    and make it writeable:

    $ chmod 777 web/uploads/td/blog
    

    Now you have to copy the sample.jpg file from tdBlogPlugin/data/samples to the blog upload directory created above. Everything is ready to run the following URL in your browser:

    http://your-project/sample-article
    
  • Enable the td_aticle admin generator in your backend application's config/settings.yml enabled_modules section:

    enabled_modules: [td_article ]( ...,)
  • To use the activate/deactivate AJAX interface in the backend td_article module, remember to enable the graphics module of the tdCorePlugin inside your settings.yml file (see tdCorePlugin README).

    enabled_modules: [graphics ]( ...,)

Configuration

You can modify settings of the tdGuestbookPlugin in the config/tdBlogPluginConfiguration.class.php file:

  • td_blog_recent_articles_count - number of articles to be displayed in tdSampleArticle module.

  • td_blog_upload_dir - upload directory for article thumbnails.

Translations

You may translate tdSampleArticle module to your own language by creating td.XX.xml file under modules/tdSampleArticle/i18n directory (where XX is the language code). So far, English language is the default one and additionally Polish translationis provided.

Dependencies