This plugin is used to configure the predefined styles for tag to inject in JCR.

To use the plugin in the component configuration, you must use the following target-component:
{code:xml}
<target-component>org.exoplatform.services.cms.folksonomy.NewFolksonomyService</target-component>
{code}

The configuration is applied mainly in _packaging/wcm/webapp/src/main/webapp/WEB-INF/conf/dms-extension/dms/dms-folksonomy-configuration.xml_.

*Sample configuration*:
{code:xml}
<external-component-plugins>
    <target-component>org.exoplatform.services.cms.folksonomy.NewFolksonomyService</target-component>
    <component-plugin>
        <name>predefinedTagStylePlugin</name>
        <set-method>addTagStylePlugin</set-method>
        <type>org.exoplatform.services.cms.folksonomy.impl.TagStylePlugin</type>
        <init-params>
            <object-param>
                <name>htmStyleForTag.configuration</name>
                <description>configuration predefined html style for tag to inject in jcr</description>
                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig">
                    <field name="autoCreatedInNewRepository">
                        <boolean>true</boolean>
                    </field>
                    <field name="repository">
                        <string>repository</string>
                    </field>
                    <field name="tagStyleList">
                        <collection type="java.util.ArrayList">
                            <value>
                                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle">
                                    <field name="name">
                                        <string>normal</string>
                                    </field>
                                    <field name="tagRate">
                                        <string>0..2</string>
                                    </field>
                                    <field name="htmlStyle">
                                        <string>font-size: 12px; font-weight: bold; color: #6b6b6b; font-family:
                                            verdana; text-decoration:none;
                                        </string>
                                    </field>
                                    <field name="description">
                                        <string>Normal style for tag</string>
                                    </field>
                                </object>
                            </value>
                            <value>
                                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle">
                                    <field name="name">
                                        <string>interesting</string>
                                    </field>
                                    <field name="tagRate">
                                        <string>2..5</string>
                                    </field>
                                    <field name="htmlStyle">
                                        <string>font-size: 13px; font-weight: bold; color: #5a66ce; font-family:
                                            verdana; text-decoration:none;
                                        </string>
                                    </field>
                                    <field name="description">
                                        <string>Interesting style for tag</string>
                                    </field>
                                </object>
                            </value>
                            <value>
                                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle">
                                    <field name="name">
                                        <string>attractive</string>
                                    </field>
                                    <field name="tagRate">
                                        <string>5..7</string>
                                    </field>
                                    <field name="htmlStyle">
                                        <string>font-size: 15px; font-weight: bold; color: blue; font-family: Arial;
                                            text-decoration:none;
                                        </string>
                                    </field>
                                    <field name="description">
                                        <string>attractive style for tag</string>
                                    </field>
                                </object>
                            </value>
                            <value>
                                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle">
                                    <field name="name">
                                        <string>hot</string>
                                    </field>
                                    <field name="tagRate">
                                        <string>7..10</string>
                                    </field>
                                    <field name="htmlStyle">
                                        <string>font-size: 18px; font-weight: bold; color: #ff9000; font-family: Arial;
                                            text-decoration:none;
                                        </string>
                                    </field>
                                    <field name="description">
                                        <string>hot style for tag</string>
                                    </field>
                                </object>
                            </value>
                            <value>
                                <object type="org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle">
                                    <field name="name">
                                        <string>hottest</string>
                                    </field>
                                    <field name="tagRate">
                                        <string>10..*</string>
                                    </field>
                                    <field name="htmlStyle">
                                        <string>font-size: 20px; font-weight: bold; color: red; font-family:Arial;
                                            text-decoration:none;
                                        </string>
                                    </field>
                                    <field name="description">
                                        <string>hottest style for tag</string>
                                    </field>
                                </object>
                            </value>
                        </collection>
                    </field>
                </object>
            </object-param>
        </init-params>
    </component-plugin>
</external-component-plugins>
{code}

* *Name*: _predefinedTagStylePlugin_
* *Set-method*: _addTagStylePlugin_
* *Type*: _org.exoplatform.services.cms.folksonomy.impl.TagStylePlugin_

* *Object type*: _org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig_
||*Name*||*Type*||*Value*||*Description*||
|*autoCreatedInNewRepository*|{{boolean}}|{{true}}|Specify whether the tag style is added automatically in a new reposistory or not.|
|*repository*|{{string}}|{{repository}}|Name of the repository where the tag style is added.|
|*tagStyleList*|{{ArrayList}}|{{{{java.util.ArrayList}}}}|The list of tag styles.|

* *Object type*: _org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle_
||*Name*||*Type*||*Description*||
|*name*|{{string}}| The name of the tag.|
|*tagRate*|{{string}}| The number of times that a tag is used which will decide the respective tag style.|
|*htmlStyle*|{{string}}| The HTML code that defines the style.|