Download the PHP package alpshq/statamic-asset-collector without Composer
On this page you can find all versions of the php package alpshq/statamic-asset-collector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alpshq/statamic-asset-collector
More information about alpshq/statamic-asset-collector
Files in alpshq/statamic-asset-collector
Package statamic-asset-collector
Short Description Collects used assets.
License proprietary
Informations about the package statamic-asset-collector
Asset Collector
Collect all used assets
Easily manage and showcase image credits on your website with Asset Credit Collector. This addon helps you collect all assets used on a page, allowing you to display image credits and other information effortlessly. Primarily designed for displaying image credits, Asset Collector can also be used to manage any list of assets on your site.
Installation
You can install the addon using composer:
Alternatively you can install the addon by navigating to Statamic's marketplace within your Control Panel and searching there for Asset Collector.
Usage
There is no configuration or setup needed. Everytime an asset's URL is requested, the asset is memorized.
You can get all these assets by using the collected_assets tag:
Filter Assets by Type
If you want to get only some of the assets you've used you can use the collected_assets:some tag.
The tag supports the following parameters which help you filter the assets you need:
| Parameter Name | Type | Default Value | Explanation |
|---|---|---|---|
image |
bool |
false |
Whether or not to include images. |
svg |
bool |
false |
Whether or not to include SVGs. |
video |
bool |
false |
Whether or not to include videos. |
audio |
bool |
false |
Whether or not to include audios. |
pdf |
bool |
false |
Whether or not to include PDFs. |
Example Usage with Filters
Example: Display Credits
Display credits at the end of your page for all images placed on the current page.
Example: Gallery
Generating a gallery or carousel of images used on the page.
Example: A List of Downloadable Files
Displaying a list of downloadable files (e.g., PDFs or other documents) used on the page.
Security
If you encounter any security related issues, please email directly [email protected] instead of opening an issue. All security related issues will be promptly addressed.
License
This is commercial software. You may use the package for your sites. Each site requires its own license.