Updates the given metadata field with the word count.
Plugin Configuration
The following workset fields need to be configured:
| Field Name | Field Level |
|---|
| The name of the field specified in the MetadataField parameter (e.g. FISHWORDCOUNT) | The level of the field specified in the MetadataFieldLevel parameter (e.g. lng ) |
The following parameters can be configured:
| Parameter | Required | Default value | Allowed values | Description |
|---|
| ExtractXPath | No | //text() | | XPath query syntax used to search and retrieve the information from within the supplied XML document |
| MetadataField | No | FISHWORDCOUNT | | The metadata field which should be set |
| MetadataFieldLevel | No | lng | logical, version, lng | The metadata field level |
plugin name="ISHSYSWORDCOUNT" example
The following configuration updates the FISHWORDCOUNT metadata field with the word count.
<plugin name="ISHSYSWORDCOUNT" handler="BlobWordCount"
ishcondition="CurrentAction in ('Create', 'Update', 'Checkin') and (EDT='EDTXML')">
<description>Counts the words in the document</description>
<workingset>
<ishfields>
<ishfield name="FISHWORDCOUNT" level="lng" />
</ishfields>
</workingset>
<initialize>
<parameters>
<parameter name="ExtractXPath">//text()</parameter>
<parameter name="MetadataField">FISHWORDCOUNT</parameter>
<parameter name="MetadataFieldLevel">lng</parameter>
</parameters>
</initialize>
</plugin>
Remember: Every CD package holds the latest default plugin information in a file named \Websites\Author\EnterViaUI\Admin.XMLWriteObjPluginConfig.xml. Verify this file for the latest information.