Skip to content

Simple Craft 3 plugin that adds a Twig filter for checking whether a file exists

License

Notifications You must be signed in to change notification settings

fantasticmachine/existential

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Craft 3 plugin that adds a Twig filter for checking whether a file exists

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages