h1. Fields

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

*Object type*: _org.exoplatform.services.cms.folksonomy.impl.TagStyleConfig$HtmlTagStyle_
||  *Name*  ||  *Type*  ||  *Default Value*   ||  *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.|

h1. 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}

* *target component*: {{org.exoplatform.services.cache.CacheService}}
* *name*: {{addExoCacheConfig}}
* *set method*: {{addExoCacheConfig}}
* *type*: {{org.exoplatform.services.cache.ExoCacheConfigPlugin}}
