Dashboard > FarCry 3.0 Developers Guide > ... > Developers Exchange > Custom Publishing Rules > ruleFile
Added by David Whiterod , last edited by David Whiterod on Aug 15, 2006  (view change)
Labels: 
(None)

ruleFile

Developer

David Whiterod (davidwhiterod at gmail dot com)

  Name Size Creator Date Comment  
ZIP Archive ruleFile.zip 46 kb David Whiterod Aug 15, 2006 ruleFile (FarCry custom publishing rule)  

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.

Powered by a free Atlassian Confluence Open Source Project License granted to FarCry CMS. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators