nystudio107/craft-emptycoalesce

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

Maintainers

πŸ‘ khalwat

Package info

github.com/nystudio107/craft-emptycoalesce

Issues

Documentation

Type:craft-plugin

pkg:composer/nystudio107/craft-emptycoalesce

Fund package maintenance!

khalwat

Statistics

Installs: 146 146

Dependents: 4

Suggesters: 0

Stars: 27

5.0.0 2024-04-13 19:01 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT a763fa66706444382f03cedcb6b5aa0ccb46430e

twigoperatoremptycraftcmscoalescingcraft-plugincraft3coalesce


README

πŸ‘ Scrutinizer Code Quality
πŸ‘ Code Coverage
πŸ‘ Build Status
πŸ‘ Code Intelligence Status

Empty Coalesce plugin for Craft CMS 5.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 5.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