|
Revision 5, 1.1 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <cfprocessingdirective pageencoding="utf-8"> |
|---|
| 3 | <!--- |
|---|
| 4 | Name : recent.cfm |
|---|
| 5 | Author : Raymond Camden |
|---|
| 6 | Created : October 29, 2003 |
|---|
| 7 | Last Updated : June 1, 2007 |
|---|
| 8 | History : added processingdir (rkc 11/10/03) |
|---|
| 9 | New link code (rkc 7/12/05) |
|---|
| 10 | Hide future entries (rkc 6/1/07) |
|---|
| 11 | Purpose : Display recent entries |
|---|
| 12 | ---> |
|---|
| 13 | |
|---|
| 14 | <cfmodule template="../../tags/scopecache.cfm" cachename="pod_recententries" scope="application" timeout="#application.timeout#"> |
|---|
| 15 | |
|---|
| 16 | <cfmodule template="../../tags/podlayout.cfm" title="#application.resourceBundle.getResource("recententries")#"> |
|---|
| 17 | |
|---|
| 18 | <cfset params = structNew()> |
|---|
| 19 | <cfset params.maxEntries = 5> |
|---|
| 20 | <cfset params.releasedonly = true> |
|---|
| 21 | <cfset entryData = application.blog.getEntries(duplicate(params))> |
|---|
| 22 | <cfset entries = entryData.entries> |
|---|
| 23 | <cfloop query="entries"> |
|---|
| 24 | <cfoutput><a href="#application.blog.makeLink(id)#">#title#</a><br></cfoutput> |
|---|
| 25 | </cfloop> |
|---|
| 26 | <cfif not entries.recordCount> |
|---|
| 27 | <cfoutput>#application.resourceBundle.getResource("norecententries")#</cfoutput> |
|---|
| 28 | </cfif> |
|---|
| 29 | |
|---|
| 30 | </cfmodule> |
|---|
| 31 | |
|---|
| 32 | </cfmodule> |
|---|
| 33 | |
|---|
| 34 | <cfsetting enablecfoutputonly=false> |
|---|