jezzdk / statamic-kontainer
A Statamic fieldtype.
Installs: 723
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
README
Statamic Kontainer is a Statamic addon that adds a file picker for Kontainer
Features
Select any image or video from Kontainer and have the url stored in Statamic.
You must have a Kontainer account in order to use this plugin. Read more and create an account on the official website.
How to Install
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
composer require jezzdk/statamic-kontainer
How to Use
Simply add a Kontainer field to your blueprints, enter your Kontainer URL in the field settings and you're ready to go 🎉
The browse button will open Kontainer in a popup window. In there you can click the "Use..." button on any image or video. The popup window will close automatically.
Variables
Example
The field works similar to the standard assets field. Example:
{{ kontainer_image }} <img src="{{ url }}" alt="My Kontainer image"> {{ /kontainer_image }}
In the example above, kontainer_image
is the name of the field set by the user.