missingAttr = ""; if( NOT StructKeyExists(attributes,"ElementType") ) missingAttr = ListAppend(missingAttr,"ElementType"); if( NOT StructKeyExists(attributes,"ElementName") ) missingAttr = ListAppend(missingAttr,"ElementName"); if( NOT StructKeyExists(attributes,"URLParam") ) missingAttr = ListAppend(missingAttr,"URLParam"); if( NOT StructKeyExists(attributes,"MinutesToCache") ) missingAttr = ListAppend(missingAttr,"MinutesToCache"); You must specify the following Custom Element parameters: #Replace( missingAttr, ",", ", ", "ALL")#
// Assume Page if not defined if( NOT StructKeyExists(url,"#attributes.URLParam#") ) url[attributes.URLParam] = 1; name = Replace( cgi.script_name, "\", "_", "ALL" ); name = Replace( name, "/", "_", "ALL" ); name = "#name#_#url[attributes.UrlParam]#"; bMakeCache = 1; bExit = 0; if( NOT StructKeyExists(application.ADF.cache,"pagerCache") ) application.ADF.cache.pagerCache = StructNew(); #application.ADF.cache.pagerCache[name].data# #theOutput# if( bMakeCache ) { application.ADF.cache.pagerCache[name] = StructNew(); application.ADF.cache.pagerCache[name].expires = DateAdd( "n", attributes.MinutesToCache, now() ); application.ADF.cache.pagerCache[name].data = theOutput; }