2.2.8.1. FAQ preference template updater

The FAQPreferenceTemplateUpdaterPlugin plugin is used to migrate the default template of the FAQ viewer.

To use the plugin in the component configuration, you must use the following target-component:


<target-component>org.exoplatform.commons.upgrade.UpgradeProductService</target-component>

The configuration is applied mainly in extension/webapp/src/main/webapp/WEB-INF/ks-extension/ks/faq/templates-configuration.xml.

Sample configuration:


<component-plugin profiles="knowledge,default,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>
Value-params Type Value Description
product.group.id string org.exoplatform.forum The groupId of the product.
old.product.group.id string org.exoplatform.ks The groupId of the old product.
location string war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl The location of the template file.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus