<?xml version="1.0" encoding="ISO-8859-1"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
	xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
  
<external-component-plugins>
  <target-component>org.exoplatform.faq.service.FAQService</target-component>
  <component-plugin>
    <name>faq.default.template</name>
    <set-method>addTemplatePlugin</set-method>
    <type>org.exoplatform.faq.service.TemplatePlugin</type>
    <init-params>
      <value-param>
        <name>viewerTemplate</name>
        <value>war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl</value>
      </value-param>
    </init-params>
  </component-plugin>
</external-component-plugins>  

  <external-component-plugins>
    <target-component>org.exoplatform.commons.upgrade.UpgradeProductService</target-component>
    <component-plugin  profiles="all">
      <name>FAQPreferenceTemplateUpdaterPlugin</name>
      <set-method>addUpgradePlugin</set-method>
      <type>org.exoplatform.faq.service.updater.FAQPreferenceTemplateUpdaterPlugin</type>
      <description>FAQ template upgrade plug-in</description>
      <init-params>
        <value-param>
          <name>product.group.id</name>
          <description>The groupId of the product</description>
          <value>org.exoplatform.forum</value>
        </value-param>      
        <value-param>
          <name>old.product.group.id</name>
          <description>The groupId of the old product</description>
          <value>org.exoplatform.ks</value>
        </value-param>	
        <value-param>
          <name>location</name>
          <description>The location of file template</description>
          <value>war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl</value>
        </value-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

</configuration>