Skip to content

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

License

Notifications You must be signed in to change notification settings

oveleon/contao-resource-insert-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

3. Use the Insert-Tag

{{cookiebar::downloads}}

// Output: 1676

ToDo:

  • Handle resource caching

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages