sfPropelTaggableWidgetPlugin
0.0.8beta
for sf 1.3 and Propel
MIT
A widget and a validator with a nice user interface, built on propel, sfPropelActAsTaggableBehaviorPlugin and jquery.
Tags are chosen via an autocomplete input text, that (with mouse or keyboard) populate a list of checkboxes. The checkbox may be checked or not with a nice style switch.
Some common buttons are also provided: "check all", "uncheck all" and "invert selection"
Developers
License
Copyright (c) 2009 Matteo Giachino
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.3
| Version |
License |
API |
Released |
|
0.0.8beta
|
MIT license |
0.0.8beta
|
12/12/2009 |
|
0.0.7beta
|
MIT license |
0.0.7beta
|
12/12/2009 |
|
0.0.6alpha
|
MIT license |
0.0.6alpha
|
10/12/2009 |
| Name |
Channel |
Version |
| sfPropelActAsTaggableBehaviorPlugin |
pear.symfony-project.com |
0.9.0-1.0.0 |
Changelog for release 0.0.8 - 12/12/2009
- bug fixed: when adding a new tag, all other tags becomes checked
Other releases
Release 0.0.8 - 12/12/2009
- bug fixed: when adding a new tag, all other tags becomes checked
Release 0.0.7 - 12/12/2009
- bug fixed: when adding a new tag, all other tags becomes checked
Release 0.0.6 - 10/12/2009
sfPropelTaggableWidgetPlugin
If you have sfPropelActAsTaggableBehaviorPlugin installed you will get a widget (and a validator) with rich user interface, with autocomplete and keyboard interaction.

Introduction
This plugins depends on sfPropelActAsTaggableBehaviorPlugin and jQuery
You will be able to add a nice tag selection tool to your forms.
Features
- user-friendly tag insertion with mouse and keyboard interaction
- tags added and removed by check/uncheck on checkboxes
- tag client-side, save server-side
- easy label customization
- widget and validator class
Get it installed
be sure to have sfPropelActAsTaggableBehaviorPlugin installed and enabled
be sure to enable jQuery
go to your project's root
Install the plugin:
./symfony plugin:install sfPropelTaggableWidgetPlugin
clear your cache:
./symfony cc
Usage
Enable the widget in your form class
class PostForm extends BasePostForm {
public function configure()
{
$this->setWidget('tags', new sfWidgetFormInputTags(array(
'taggable_object' => $this->getObject(),
'enable_autocomplete' => true
)));
}
}
Set the validator
class PostForm extends BasePostForm {
public function configure()
{
$this->setWidget('tags', new sfWidgetFormInputTags(array(
'taggable_object' => $this->getObject(),
'enable_autocomplete' => true
)));
$this->setValidator('tags', new sfValidatorTags());
}
}
and you're done.
Parameters
required parameters
- taggable_object: is the only required option for the widget. It must be a Propel object with the sfPropelActAsTaggable behavior
optional parameters
- enable_autocomplete: enables the autocomplete on the text input. The data are taken from the TagPeer::getAll() method. (default: TRUE)
- check_all_label: the label for the "check all tags" button. (default: Check all)
- uncheck_all_label: the label for the "uncheck all tags" button. (default: Uncheck all)
- invert_selection_label: the label for the "invert tags selection" button. (default: Invert selection)
License and credits
This plugin has been developed by matteosister and is licensed under the MIT license.