It is common to want to include additional assets in our extensions. Assets are normally media. An example would be image files. This is a list of common files that we might classify as assets:
We deal with asset files in two common ways.
We can use the
media tag in our extension XML manifest files to add assets to the Joomla! Media Manager. This is ideal if we want to allow users the right to modify the assets.
media tag, we must detail each file that we intend to add. Unlike copying extension files, we cannot define folders that we want to copy into the Media Manager.
This example demonstrates how we can copy two images,
bar.jpg, from a folder in the extension archive named ...