oveleon/contao-resource-insert-tag

Provides the ability to output content from various external sources via an insert tag

1.1.0 2023-05-30 10:21 UTC

This package is auto-updated.

Last update: 2024-03-30 00:17:27 UTC


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