tdGuestbookPlugin - 0.1.7

Provides funcionalities for a standard guestbook.

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

tdGuestbookPlugin

Provides funcionalities for a standard guestbook.

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/tdGuestbookPlugin/trunk plugins/tdGuestbookPlugin

or by using the default symfony plugin install command:

$ ./symfony plugin:install -s beta tdGuestbookPlugin

as the actual release is in its beta stage. Right after the installation of the plugin, you should update plugin assets:

$ ./symfony plugin:publish-assets

so that the predefined layout files of the plugin are accessible. Everything is done properly now.

Usage

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

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

    $ ./symfony doctrine:build --all
    

    and

    $ ./symfony doctrine:data-load
    

    and run the following URL in your browser:

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

    enabled_modules: [td_guestbook ]( ...,)
  • tdSampleGuestbook uses sfCryptoCaptchaPlugin to generate captcha images. A special class with captcha configuration is included: tdFrontendGuestbookForm. td_guestbook admin module uses the standard tdGuestbookForm.

  • To use the activate/deactivate AJAX interface in the backend td_guestbook 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/tdGuestbookPluginConfiguration.class.php file:

  • td_guestbook_entries_per_page - number of guestbook entries shown on each page.

Translations

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

Dependencies