Configuration plug-in is used to automatically set up a default template for the FAQ portlet. When the FAQ service starts, it will get values which are returned from the TemplatePlugin component to initialize the template for the FAQ portlet.
The template configuration plug-in is configured in the templates-configuration.xml file.
  
In details:
At runtime of the FAQ Service, FAQService component is called, then
    templates-configuration.xml file is executed. The component-plugin named
    addTemplatePlugin will be referred to
    org.exoplatform.faq.service.TemplatePlugin to execute some objects and create default data for the
    Forum application.
  
<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>
The properties of template configuration plug-in are defined in the init-params tag as follows:
<init-params>
<value-param>
<name>viewerTemplate</name>
<value>war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl</value>
</value-param>
</init-params>
| Name | Description | Value | 
|---|---|---|
| viewerTemplate | Path of file template. | war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl |