Create custom plug-ins
A custom plugin is a reusable Java class that you create to perform a task. We can create custom plug-ins such as custom workflow actions, plug-ins to run when a page is rendered, plug-ins to store multi-locale text strings and plug-ins to run when a file is uploaded.
- Create a rendering plug-in class
A rendering plug-in is a reusable class that you create to perform a task at render time. It can be referenced within web content using a plug-in tag. For example, we could write a plug-in that uses attributes from the current user's profile to determine whether the body of the plug-in tag is rendered or not. A rendering plug-in class requires you to reference has a set of web content API methods.
- Create a custom workflow action class
We can create custom workflow action classes to enable you to use custom workflow actions in a workflow.
- Create a Text Provider class
A text provider is used to provide localized text that can be used within web content item forms. For example, a text provider can be used to localize the field labels or help text within an authoring template so that each user sees the labels or help text in their own language.
- Create a file upload validation class
A file upload validation plugin is invoked anytime a file is uploaded into Web Content Manager. This includes uploading files into file resource, image and style sheet elements, and images uploaded into rich text or HTML elements. The plugin is called within the "validation" processing used by Web Content Manager when uploading files.
- Create a subscriber class
A subscriber plugin is used to run additional functionality on the subscriber that can be used to determine if the subscriber is ready for syndication when a syndication event is invoked.
- Create a syndicator class
A syndicator plugin is used to run additional functionality on the syndicator when a syndication event is invoked.
- Create a context processor class
When configured, a context processor plug-in is invoked by the web content viewer portlet before rendering and allows the current context, such as the item to display, to be modified.
- Create a content page resolution filter class
A content page resolution filter is used to customize the behavior of the content page resolution filter chain. This can enable you to tailor the response to a web content request in several ways, including overriding the content item displayed or the portal page used to display a content item in the web content viewer.
- Create a content URL generation filter class
A content URL generation filter is used to customize the URLs that are generated by a web content viewer. By creating a plug-in that implements a content URL generation filter, we can tailor the URLs to content items.
- Deploy custom plug-in applications
You must deploy the custom plug-in applications on your server before they can be used in the web content system.
Parent: Developing