Databases Reference
In-Depth Information
Files
Plug-ins often require the use of external files for various functionality. The most common types of files
used in plug-ins include CSS, JavaScript, and image files (see Figure 11-10). Files uploaded here are
stored in the database and directly associated with the plug-in. The substitution string #PLUGIN PREFIX#
can be used to reference these files from your code, much like #APP IMAGES# is used to refer to files
associated with an application. The Files region is only available after the plug-in is created.
Figure 11-10. The Files region of the Create/Edit page
Events
The Events region (see Figure 11-11) allows plug-in developers to add custom events to dynamic actions
in an application. This ability would only be useful for plug-ins that trigger custom events. For example,
if you created a countdown timer plug-in, creating a “timeout” event would allow plug-in users to create
dynamic actions that are based on the event. It's up to plug-in developers to trigger custom events at the
appropriate times. The Events region is only visible after the plug-in is created.
Figure 11-11. The Events region of the Create/Edit page
Search WWH ::




Custom Search