bnomei / kirby3-field-ecco
This package is abandoned and no longer maintained.
No replacement package was suggested.
Kirby 3 Field Method to ecco strings based on boolval of Field
Package info
github.com/bnomei/kirby3-field-ecco
Type:kirby-plugin
pkg:composer/bnomei/kirby3-field-ecco
1.2.1
2023-08-30 16:35 UTC
Requires
- php: >=8.0.0
- getkirby/composer-installer: ^1.1
README
Tip
This plugin has been merged with Janitor.
Kirby Field Ecco
Kirby Field Method to ecco strings based on boolval/isEmpty of a Field.
Installation
- unzip master.zip as folder
site/plugins/kirby3-field-eccoor git submodule add https://github.com/bnomei/kirby3-field-ecco.git site/plugins/kirby3-field-eccoorcomposer require bnomei/kirby3-field-ecco
Usage
in php code
echo $page->myBoolField()->ecco('Yes please. 👍', 'OMG NO! 👎'); echo $page->selectField()->ecco('has a value', 'is empty');
or in blueprint template language
{{ page.myBoolField.ecco('Yes please. 👍', 'OMG NO! 👎') }} {{ page.selectField.ecco('has a value', 'is empty') }}
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
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.