2.2.7.3. CSS Class Manager

This plugin is used to manage CSS class of file icons.

You can find the configuration file of this component at: extension/webapp/src/main/webapp/WEB-INF/ks-extension/ks/forum/cs-class-configuration.xml.

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


<target-component>org.exoplatform.forum.common.webui.cssfile.CssClassManager</target-component>

Sample Configuration


<external-component-plugins>
  <target-component>org.exoplatform.forum.common.webui.cssfile.CssClassManager</target-component>
  <component-plugin>
    <name>forum.default.cssclass</name>
    <set-method>registerCssClassPlugin</set-method>
    <type>org.exoplatform.forum.common.webui.cssfile.CssClassPlugin</type>
    <description>default supported CSS class icon file</description>
    <init-params>

      <object-param>
        <name>default</name>
        <description></description>
        <object type="org.exoplatform.forum.common.webui.cssfile.CssClassIconFile">
          <field name="type">
            <string>default</string>
          </field>
          <field name="cssClass">
            <string>FileDefault</string>
          </field>
          <field name="groupFileTypes">
            <string><![CDATA[applicationoctet-stream]]></string>
          </field>
        </object>
      </object-param>

      <object-param>
        <name>gzip</name>
        <description></description>
        <object type="org.exoplatform.forum.common.webui.cssfile.CssClassIconFile">
          <field name="type">
            <string>gzip</string>
          </field>
          <field name="cssClass">
            <string>FileArchiveDefault</string>
          </field>
          <field name="groupFileTypes">
            <string><![CDATA[applicationx-tar,applicationx-gzip,applicationx-bzip2,applicationother-zip]]></string>
          </field>
        </object>
      </object-param>
      <object-param>
        ...
      </object-param>
    </init-params>
  </component-plugin>
</external-component-plugins>

In which:

Field Type Description
type string The file extension.
cssClass string The CSS class which is corresponding to the file extension.
groupFileTypes string The list of file types which have the same CSS class as the file extension.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus