https://github.com/davidhellmann/existential
Simple Craft 3 plugin that adds a Twig filter for checking whether a file exists
https://github.com/davidhellmann/existential
Last synced: 5 months ago
JSON representation
Simple Craft 3 plugin that adds a Twig filter for checking whether a file exists
- Host: GitHub
- URL: https://github.com/davidhellmann/existential
- Owner: davidhellmann
- License: mit
- Fork: true (fantasticmachine/existential)
- Created: 2020-02-18T12:14:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T21:57:09.000Z (about 6 years ago)
- Last Synced: 2025-10-14T09:23:58.651Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Existential plugin for Craft CMS
Check whether a file exists
 <-- 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](https://moresoda.co.uk)