Changeset 2766


Ignore:
Timestamp:
09/04/10 05:17:31 (17 months ago)
Author:
mattlevine
Message:
  1. Adding content.getIsOnDisplay() method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2.1/www/requirements/mura/content/contentBean.cfc

    r2661 r2766  
    15791579</cffunction> 
    15801580 
     1581<cffunction name="getIsOnDisplay" output="false"> 
     1582<cfreturn getDisplay() eq 1 or  
     1583                        ( 
     1584                                getDisplay() eq 2 and getDisplayStart() lte now() 
     1585                                AND (getDisplayStop() gte now() or getDisplayStop() eq "") 
     1586                        ) 
     1587                        and (listFind("Page,Portal,Gallery,File,Calendar,Link,Form",getType()) or listFind(getModuleAssign(),'00000000000000000000000000000000000'))> 
     1588</cffunction> 
     1589 
    15811590</cfcomponent> 
Note: See TracChangeset for help on using the changeset viewer.