jezzdk/statamic-kontainer

A Statamic fieldtype.

v2.0.0 2023-05-23 13:57 UTC

This package is auto-updated.

Last update: 2024-10-23 17:00:17 UTC


README

Statamic 4.0+ Latest Version on Packagist

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.