Download the PHP package msenkpiel/kirby-iframe without Composer
On this page you can find all versions of the php package msenkpiel/kirby-iframe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download msenkpiel/kirby-iframe
More information about msenkpiel/kirby-iframe
Files in msenkpiel/kirby-iframe
Package kirby-iframe
Short Description Plugin to add an iFrame to Kirby CMS
License MIT
Informations about the package kirby-iframe
kirby-iframe
Plugin to add an iFrame to Kirby Panel.
Installation
Config options
Due to the iframe security policies, it is not possible to read the height of the iFrame content and embed the frame at the appropriate height. Therefore, you can only define fixed heights for the iFrame. To ensure responsive behavior, it is possible to define breakpoints and corresponding iFrame heights.
Config
Development
You can test the plugin locally without installing Kirby on your machine. The
Docker setup creates a temporary Kirby Plainkit installation, mounts this plugin
into site/plugins/kirby-iframe and starts Kirby's built-in PHP server.
Docker test environment
- Website: http://localhost:8080
- Panel: http://localhost:8080/panel
- Login:
[email protected]/admin1234
The default Panel account is only intended for this local test environment. The
Docker setup configures Kirby's public URL as http://localhost:8080 so Panel
redirects point to the host URL instead of the container bind address.
You can override the credentials, Kirby URL and iframe URL with environment variables:
To use a different host port, set both the published port and Kirby's public URL:
To test with Kirby 4:
To test with the Kirby 6 preview:
To remove the temporary Kirby installation and start fresh:
Run Kirby-Up
The Panel view is built from a Vue component with kirbyup.
Run local build and Docker Compose config checks: