Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

ruleFile

Developer

David Whiterod (davidwhiterod at gmail dot com)

  File Modified
No files shared here yet.

RuleFile is based upon the FarCry core's news rule and re-worked for file objects. This rule also adds the ability to choose a field (document date or title) to order by and a order direction.

Files

The Zip file above contains:

  • /packages/rules/ruleFiles.cfc (the rule)
  • /webskin/dmFile/displayTeaser.cfm (display teaser template - standard)
  • /webskin/dmFile/displayTeaserClass.cfm (display teaser template - adds file-based class)
  • /webskin/dmFile/displayTeaserList.cfm (display teaser template - just a list item)
  • /webskin/includes/_cfFunctions.cfm (contains the cflib.org function, FncFileSize used in the displayTeaser templates)

Installation

  1. Extract these files into your project directory (ensure files go into the correct folders)
  2. Deployed the rule via the standard FarCry administration interface - Admin. > COAPI Management > COAPI Tools > Rule Classes
  3. Add the rule to the publishing container(s) of your choice.
  • No labels