Kirby CMS Tag to get values of 'site'-blueprint text/textarea-fields.
This plugin is free but if you use it in a commercial project please consider to make a donation 🍻.
- Kirby 2.3+
kirby plugin:install bnomei/kirby-siteoption
$ git submodule add https://github.com/bnomei/kirby-siteoption.git site/plugins/kirby-siteoption
- Download the contents of this repository as ZIP-file.
- Rename the extracted folder to
kirby-siteoption
and copy it into thesite/plugins/
directory in your Kirby project.
Let's assume you have site/blueprint/site.yml
with a field named contactadress
.
contactadress:
label: Contact Adress
type: textarea
When editing your pages in the Panel you want to get that value inside a textfield. This plugin makes that easy.
(siteoption: contactadress)
Or you can get the value of the field parsed with kirbytext()
.
(siteoption: contactadress output: kirbytext)
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.