Skip to content
Simple Craft 2 plugin that adds a Twig filter for checking whether a file exists
PHP
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.
src
.craftplugin
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json

README.md

Existential plugin for Craft CMS

Check whether a file exists

Screenshot <-- this is irony

Existential Overview

A simple Craft 3 plugin which adds a Twig filter for checking whether a file exists

For the Craft 2 version see https://github.com/moresoda/existential/tree/craft2/master [https://github.com/moresoda/existential/tree/craft2/master]

Configuring Existential

No configuration is necessary

Using Existential

Use it like this, {% if asset.getUrl() | fileExists %}

The plugin will return 'true' if the file exists and 'false' if otherwise.

Existential Roadmap

Some things to do, and ideas for potential features:

  • Release it
  • Have a beer

Brought to you by Pete Eveleigh

You can’t perform that action at this time.