Skip to content
Kirby 3 Field Method to ecco strings based on boolval of Field
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
.editorconfig
.gitignore
.php_cs.dist
composer.json
composer.lock
index.php
readme.md

readme.md

Kirby 3 Field Ecco

GitHub release License Kirby Version Kirby 3 Pluginkit

Kirby 3 Field Method to ecco strings based on boolval of Field.

Commercial Usage

This plugin is free but if you use it in a commercial project please consider to

Installation

  • unzip master.zip as folder site/plugins/kirby3-field-ecco or
  • git submodule add https://github.com/bnomei/kirby3-field-ecco.git site/plugins/kirby3-field-ecco or
  • composer require bnomei/kirby3-field-ecco

Usage

in php code

echo $page->myBoolField()->ecco('Yes please. 👍', 'OMG NO! 👎');

or in blueprint template language

{{ page.myBoolField.ecco('Yes please. 👍', 'OMG NO! 👎') }}

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.

You can’t perform that action at this time.