Skip to content

A very simple field to display an iframe in the panel

License

Notifications You must be signed in to change notification settings

arnaudjuracek/kirby-iframe-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kirby-iframe-field

A very simple field to display an iframe in the panel

preview.png

Installation

Download

Download and copy this repository to /site/plugins/iframe-field.

Git submodule

git submodule add https://github.com/arnaudjuracek/kirby-iframe-field.git site/plugins/iframe-field

Composer

composer require arnaudjuracek/iframe-field

Blueprint usage

fields:
  webpage:
    type: iframe
    src: https://getkirby.com/
    ratio: 16/9

Options

src: string

The source of the iframe.

Can be either a relative path (if you want to display something related to the content of your website, a template, a panel page, etc…) or an absolute path (to display something related to another website, but be careful of CORS though).

ratio: fraction

Default is 4/3.

Define the aspect ratio of the iframe. Can be used in conjunction with the standard field width property.

License

MIT.

About

A very simple field to display an iframe in the panel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published