If your plugin requires a lot of resources, you may wish to expose a directory of files as resources, rather than writing definitions for each individual file.
1 2<resource type="download" name="icons/" location="templates/extra/autofavourite/icons/"/>
name
and location
must both have trailing slashesicons/small/icn_auto_fav.gif
will be mapped to the resourcetemplates/extra/autofavourite/icons/small/icn_auto_fav.gif
After defining the downloadable resources directory, you can refer to it by URL. The URL for a downloadable resource is as follows:
{server root}/download/resources/
{plugin key}:{module key}/{resource name}
NOTE: {module key
} is optional.
For details:
Downloadable Plugin Resources
Rate this page: