Changelog

Latest features, fixes, and improvements. Update via Composer or download the ZIP file.
Download v2.7.0

v2.7.0

🐞 Bug Fixes

  • Previewing another page: With pageId set to a page other than the one you edit, the preview no longer fills that page with your unsaved content. It shows the page as saved.
  • Jump links: Links like #team now scroll to their section inside the preview instead of loading the home page.

🔒 Security

  • Messages from the preview: The Panel now saves or follows a link only when the preview itself asks, and never opens a script link like javascript:. Prevents an embed on the previewed page, such as a third-party widget, from saving your changes.

v2.6.3

🐞 Bug Fixes

  • Leaving a page while the preview loads: Title changes and file sorting no longer refresh a preview that is no longer on screen.
  • Recovering from a failed preview: A preview that failed to start now recovers on the next page you open, instead of staying blank until you reload the Panel.
  • License status in the system view: On some installs, the system view failed with an error. It opens again, and the license status shows its label.

v2.6.2

🚀 Features

  • License key activation: The activation dialog now uses your license key instead of the order number for a smoother setup. Find your license key at hub.kirby.tools or in your order confirmation email.
Your order number still works as a fallback if you don't have your license key handy.

v2.6.1

🚀 Features

v2.6.0

🚀 Features

  • Page render hooks: The page.render:before and page.render:after hooks are now triggered during live preview rendering. If your project relies on render hooks – for example, to load classes or modify template data – they now work as expected.

v2.5.0

🚀 Features

  • System view license management: View your license key, activation status, and version compatibility directly in the Kirby Panel system view, and activate new licenses from there.

v2.4.0

🚀 Features

  • Kirby 5 license status integration: The plugin now displays its license status on the Panel's system page, following Kirby 5's plugin license management conventions.

v2.3.1

🐞 Bug Fixes

  • Device preview scaling: A device preview narrower than the section, such as Mobile at 390px, was scaled up to fill it. It now keeps its device width.

v2.3.0

🚀 Features

Kirby Panel
  • New tab button: New button to open previews in a new tab.
  • Device dimension buttons: Device dimensions buttons to simulate different screen widths. The height is fixed at 100% of the preview section. The available devices are:
    • Mobile: 390px
    • Tablet: 768px
    • Desktop: 1440px

v2.2.0

🐞 Bug Fixes

  • Site-level field preview: Changes to site fields (in site.yml) appeared in the preview only after saving. They now appear right away, like changes to page fields.

v2.1.0

🚀 Features

  • Preview alternate pages: The new pageId section property lets you preview a different page than the one being edited. This is useful for previewing how site-level changes affect a specific page, or for previewing template pages from a settings panel.
  • Improved sticky scroll behavior: Once the Panel's top bar scrolls out of view, a sticky preview grows into the space it leaves.

v2.0.0

Kirby Live Preview v2 is a major release with full support for Kirby 5. This major release requires a new license key. If you already have a license, you receive either a free upgrade to v2 or a 50% discount on your new license. Head over to the Kirby Tools Hub to get your discount or read more in the license compatibility guide.

v1.5.0

🚀 Features

  • Update strategy option: The new updateStrategy property controls when the preview updates. Set it to blur instead of the default interval to update the preview when a text-like, number-like, or blocks field loses focus:
sections/live-preview.yml
type: preview
updateStrategy: blur

v1.3.0

🚀 Features

  • Panel license activation: Activate your license directly in the Kirby Panel without manual file editing. Click Activate in the Live Preview section to enter your license details.
  • Packagist distribution: The plugin is now available via Packagist, simplifying Composer-based installations. The private Composer repository has been deprecated.

v1.2.0

🚀 Features

  • Update interval option: Change rendering frequency with the updateInterval option or disable it completely.

🐞 Bug Fixes

  • Keyboard save shortcut: Saving with Cmd + S now works correctly when the focus is on the preview frame.

v1.1.0

🚀 Features

  • Permalink resolution: Resolve permalinks in writer fields to redirect links to the corresponding Panel page.
  • Frontend preview mode: Support detecting the preview mode in the frontend with the data-preview-mode attribute in CSS and JavaScript:
    assets/css/main.css
    [data-preview-mode] .cookie-banner {
      display: none;
    }
    
    assets/js/main.js
    const isPreviewMode = document.documentElement.dataset.previewMode === "true";
    
  • Backend preview mode detection: Support preview mode detection in the backend with the previewMode content key:
    site/snippets/footer.php
    $isPreviewMode = $page->previewMode()->isTrue();
    

v1.0.3

Initial Release

Kirby Live Preview v1.0 brings real-time content preview directly into the Kirby Panel. See your changes rendered instantly as you edit, without switching between the Panel and your website.

🚀 Features

  • Real-time preview: Content updates are rendered in the preview iframe as you type, providing instant visual feedback.
  • Panel section: Add the preview section to any blueprint with type: preview. Works with pages and site blueprints.
  • Sticky layout support: Make the preview sticky in your blueprint layout for side-by-side editing alongside blocks and other fields.
  • Panel link navigation: Click links in the preview to navigate to the corresponding Panel page instead of the frontend URL.

For setup instructions, see the Getting Started guide.