Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Widget for using JQuery plugin "Pines Tags" with Yii-Framework
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets/js
PTags.php initial
README.md

README.md

PTags

I just quickly wrote a widget for the JQuery plugin Pines Tags. Pines Tags is a beautiful and easy to use plugin. Even so, this widget is very easy to use.

The Pines Tags plugin is untouched.

Have a look at the Github Repo.

Requirements

Yii 1.1 or above.

Usage

Just extract in your extensions directory and use it like every other widget:

$this->widget('application.extensions.PTags.PTags',array(
    'id'=>'die_hard',
    'value'=>'action,bruce fucking willis,awesome,explosions,dead terrorists',
    'options'=>array(
        'editable'=>false,
        'remover'=>false
    )
));

value are the tags seperated by delimiter(standard: ",") "hardcoded" into the value of the input tag. You can leave it empty and use the tags option if you want to submit an array.

Options are the same as pines tags offers, but without the ptags_-prefix:

$options=array(
    'tags' => array(),
        'current_text' => true,
        'delimiter' => ",",
        'trim_tags' => true,
        'show_box' => false,
        'input_box' => true,
        'remover' => true,
        'editable' => true,
        'sortable' => false,
        ); 

Resources

Something went wrong with that request. Please try again.