From: <ndi...@us...> - 2002-09-08 03:46:38
|
Update of /cvsroot/modus/modustest In directory usw-pr-cvs1:/tmp/cvs-serv10460 Modified Files: index.cfm Log Message: changed to use the getAllSorted() method, so it sorts on featured releases, then the title Index: index.cfm =================================================================== RCS file: /cvsroot/modus/modustest/index.cfm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.cfm 2 Sep 2002 21:28:48 -0000 1.2 --- index.cfm 8 Sep 2002 03:46:35 -0000 1.3 *************** *** 18,22 **** } //all releases ! all = pr.getAll(); //if a URL id exists --- 18,22 ---- } //all releases ! all = pr.getAllSorted("featured desc,title"); //if a URL id exists *************** *** 28,41 **** </cfscript> ! <cfoutput> <ul> <cfloop from="1" to="#arrayLen(all)#" index="ii"> <cfset thisObj = all[ii]> ! <li><a href="#getFileFromPath(getBaseTemplatePath())#?id=#thisObj.getID()#">#thisObj.getField("title").toHTML()#</a> <br /> #thisObj.getField("image").toHTML()# - </cfloop> --- 28,41 ---- </cfscript> ! <cfoutput> <ul> <cfloop from="1" to="#arrayLen(all)#" index="ii"> <cfset thisObj = all[ii]> ! ! <li><a href="#getFileFromPath(getBaseTemplatePath())#?id=#thisObj.getID()#"<cfif thisObj.getField("featured").getValue()> style="font-weight:bold;"</cfif>>#thisObj.getField("title").toHTML()#</a> (featured: #thisObj.getField("featured").toHTML()#) <br /> #thisObj.getField("image").toHTML()# </cfloop> |