2.2.2.12. URL Converter Filter

Warning

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

This plugin converts all the URLs in the activity into the hyperlinks.

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


<target-component>org.exoplatform.social.common.xmlprocessor.XMLProcessor</target-component>

Sample configuration:


<component-plugin>
  <name>URLConverterFilterPlugin</name>
  <set-method>addFilterPlugin</set-method>
  <type>org.exoplatform.social.common.xmlprocessor.filters.URLConverterFilterPlugin</type>
  <init-params>
    <value-param>
      <name>urlMaxLength</name>
      <description>the max length of URL</description>
      <value>-1</value>
    </value-param>
  </init-params>
</component-plugin>

In which:

Value-paramPossible valueDefault valueDescription
urlMaxLength integer -1The maximum length of the URL. If the URL exceeds the maximum length, the URL will be shortened. If the value is -1, it means the URL is not be shortened.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus