https://github.com/arnaudjuracek/kirby-iframe-field
A very simple field to display an iframe in the panel
https://github.com/arnaudjuracek/kirby-iframe-field
iframe kirby kirby-plugin kirby3 kirby3-plugin
Last synced: 2 months ago
JSON representation
A very simple field to display an iframe in the panel
- Host: GitHub
- URL: https://github.com/arnaudjuracek/kirby-iframe-field
- Owner: arnaudjuracek
- License: mit
- Created: 2020-03-06T19:24:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T20:21:49.000Z (about 5 years ago)
- Last Synced: 2024-12-26T16:25:10.255Z (4 months ago)
- Topics: iframe, kirby, kirby-plugin, kirby3, kirby3-plugin
- Language: PHP
- Homepage:
- Size: 166 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kirby-iframe-field
A very simple field to display an iframe in the panel

## 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
```yaml
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](https://tldrlegal.com/license/mit-license).