Home  Extras  MODx Add-Ons  IfEmpty

Product:

IfEmpty


Forums Support Thread Votes: 63
Tags: Gallery, snippet, Content, Utilities, tracking, file management
Submitted: Jan 12, 2010
Released: Jan 13, 2010
Downloads: 97
License: GPLv2

Works with:
Evolution-1.0.2
Evolution-1.0.1
Evolution-1.0.0

IfEmpty 0.1-rc1 | Author: bbusenius

This snippet looks in a folder to see if there are any files. If the folder is empty it returns a message from a custom chunk. This was written to work alongside the FileDownload snippet, however, it will work just fine by itself. This snippet takes two required parameters: &path (path to file) and &message (chunk name).


Download


Description

A simple snippet that looks in a directory to see if there are any files. If the directory is empty it returns a message from a custom chunk. This was written to work alongside the FileDownload snippet, however, it will work just fine by itself.

Instructions

1. Create a new snippet called IfEmpty. 2. Copy and paste the text from the IfEmpty.txt file. 3. Call the snippet from your chunk or document.* *Note: both the &path and the &message parameters are required. If you wish to use this snippet to augment the FileDownload snippet just place the call after your FileDownload snippet call. Example calls: [!IfEmpty? &path=`path/to/your/folder` &message=`your_chunk_template_name` !]




Released Versions

Releases that are grayed out are deprecated.

Version Released Author Downloads
Total Versions: 1 Total Downloads: 97
0.1-rc1 Jan 13, 2010 bbusenius 97

Download Statistics

Package downloads per day since tracking began on June 27th, 2010. Weekends are colored. Plot below shows an overview.


Top Countries

This is a list of the countries most downloading this Extra.

Country Downloads
United States 11
Malaysia 1
Switzerland 1
Canada 1
Mexico 1
Japan 1
Indonesia 1
Ukraine 1
Poland 1
 
 
 

Contact Us | Advertise | Team Blog | FAQ | Credits

© 2005-2010 MODx, LLC. All rights reserved. Privacy Policy | Terms of Service