2.2.9.3. Template

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

This plugin is used to initialize the template for the FAQ application.

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


<target-component>org.exoplatform.faq.service.FAQService</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>
  <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>
Value-params Type Value Description
viewerTemplate string war:/ks-extension/ks/faq/templates/FAQViewerPortlet.gtmpl The viewer template file.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus