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:
Name:
URLConverterFilterPlugin
Set-method:
addFilterPlugin
Type:
org.exoplatform.social.common.xmlprocessor.filters.URLConverterFilterPlugin
Init-params:
Value-param | Possible value | Default value | Description |
---|---|---|---|
urlMaxLength |
integer
| -1 | The 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. |