apecave/kirby3-text-proxy-field
Text field that can optionally proxy the placeholder value using the kirby query language
Maintainers
Package info
github.com/apecave/kirby3-text-proxy-field
Language:JavaScript
Type:kirby-plugin
pkg:composer/apecave/kirby3-text-proxy-field
Requires
- getkirby/cms: ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 68eae712bf59ee071bef87589a9d6b0b6a3c3c28
- Paul Wagner <paulw.woop@foodchain.com>
This package is not auto-updated.
Last update: 2026-06-21 14:39:06 UTC
README
Text field that can optionally proxy the placeholder value using the kirby query language.
Overview
1. Use Case
A developer wishes to make a meta_description field allowing the user customize the page meta description for better seo. The default fallback value would be from the $page->lede(). In this case it would be nice to be able to show the user data from the $page->lede() field as a placeholder value so the user can see what the fallback value would be.
2. Installation
Download and copy this repository to /site/plugins/kirby3-text-proxy-field
Alternatively, you can install it with composer: composer require apecave/kirby3-text-proxy-field
3. Configuration
The blueprint field would look something like this:
fields: meta_description: type: text-proxy placeholder: page.lede()
4. Template Usage
The header code of the page we could do something like:
$meta_description = $page->meta_description()->or( $page->lede() );
