Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Empty Coalesce plugin for Craft CMS 3.x

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
  2. Then tell Composer to load the plugin:

     composer require nystudio107/craft-emptycoalesce
  3. Install the plugin via ./craft install/plugin empty-coalesce via the CLI, or in the Control Panel, go to Settings β†’ Plugins and click the β€œInstall” button for Empty Coalesce.

You can also install Empty Coalesce via the Plugin Store in the Craft Control Panel.

Documentation

Click here -> Empty Coalesce Documentation

Empty Coalesce Roadmap

Some things to do, and ideas for potential features:

  • Submit a PR to the Twig project to get it into core

Brought to you by nystudio107

Craft Emptycoalesce

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty

Craft Emptycoalesce Info

⭐ Stars 23
πŸ”— Homepage nystudio107.com
πŸ”— Source Code github.com
πŸ•’ Last Update 5 months ago
πŸ•’ Created 4 years ago
🐞 Open Issues 17
βž— Star-Issue Ratio 1
😎 Author nystudio107