bnomei / kirby-siteoption

Kirby CMS Tag to get values of 'site'-blueprint field

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kirby Siteoption

GitHub release License Kirby Version

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 🍻.

Requirements

Installation

kirby plugin:install bnomei/kirby-siteoption

Git Submodule

$ git submodule add https://github.com/bnomei/kirby-siteoption.git site/plugins/kirby-siteoption

Copy and Paste

  1. Download the contents of this repository as ZIP-file.
  2. Rename the extracted folder to kirby-siteoption and copy it into the site/plugins/ directory in your Kirby project.

Usage

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)

Disclaimer

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.

License

MIT

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.

About

Kirby CMS Tag to get values of 'site'-blueprint field


Languages

Language:PHP 100.0%