Provides the ability to output content from various external sources via an insert tag
composer require oveleon/contao-resource-insert-tag
1. Add a new resource
Field | Value |
---|---|
Title | Packagist - Cookiebar |
Alias / Constant | cookiebar |
Source url | https://packagist.org/packages/oveleon/contao-cookiebar.json |
Method | GET |
Data-Type | JSON |
2. Create new insert tags within the resource
Field | Value |
---|---|
Alias / Tag | downloads |
Path* | [package][downloads][total] |
* Using the Symfony PropertyAccess Component
3. Use the Insert-Tag
{{cookiebar::downloads}}
// Output: 1676
- Handle resource caching