Implement and Add a Pluggable Library or View
To create and add a pluggable library or pluggable view
1. Create the folders needed for the pluggable library or view. See Figure . The root folder for the pluggable view or library must match the view or library ID. 2. Write or download the code needed for this view or library:
For pluggable libraries that use resources hosted externally, skip this step.
For all other pluggable libraries, you may download resources for third-party libraries and add them to the library’s folders. Or write the necessary JavaScript code and add it to the
/js folder.
4. Optionally, define additional configuration that MashZone NextGen may need to import and manage the view or library. Configuration is defined in either:
Additional configuration is required to register a pluggable library as a pluggable view or to register a pluggable library with external resources. You may also use library configuration to:
Define basic metadata such as a description and version or identifying a pluggable library as a pluggable view.
Identify images and help to use with a pluggable view library.
Declare dependencies for this library or view on libraries bundled in
MashZone NextGen or other custom or third-party libraries added to
MashZone NextGen.
Define the external resources for pluggable libraries that have no local resources.
5. Upload the pluggable view or pluggable library using either the MashZone NextGen importLib command or using Ant with a build file. See Import Pluggable Views and Libraries for examples and instructions.