oveleon / contao-resource-insert-tag
Provides the ability to output content from various external sources via an insert tag
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- contao/core-bundle: ^4.13
- symfony/http-client: ^5.4
- symfony/http-kernel: ^5.4
- symfony/property-access: ^5.0
Requires (Dev)
- contao/manager-plugin: ^2.3.1
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
Provides the ability to output content from various external sources via an insert tag
Install
composer require oveleon/contao-resource-insert-tag
Usage (Example using the Packagist API)
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
ToDo:
- Handle resource caching