https://github.com/oveleon/contao-resource-insert-tag
Provides the ability to output content from various external sources via an insert tag
https://github.com/oveleon/contao-resource-insert-tag
contao contao-bundle insert-tag
Last synced: 22 days ago
JSON representation
Provides the ability to output content from various external sources via an insert tag
- Host: GitHub
- URL: https://github.com/oveleon/contao-resource-insert-tag
- Owner: oveleon
- License: mit
- Created: 2020-10-30T11:21:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T19:06:57.000Z (3 months ago)
- Last Synced: 2025-02-26T07:48:16.609Z (2 months ago)
- Topics: contao, contao-bundle, insert-tag
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contao Resource Insert-Tag
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](https://symfony.com/doc/current/components/property_access.html#usage)
**3. Use the Insert-Tag**
```html
{{cookiebar::downloads}}// Output: 1676
```### ToDo:
- Handle resource caching