BlogCFC hides old entries, how to change that.

Word Count: 446

Dan Lancelot was having an issue with BlogCFC. He visited his blog and saw the text "Sorry There are not blog entries". This was mainly to do with his lack of posts in the last 30 days. By default BlogCFC will show the last 30 days entries along with the max number of entries which is set in your BlogCFC settings file. If you are someone who does not post as frequently and you want to change the 30 day default to say 60 or 90 days. To change this go to tags > folder and edit the getMode.cfm template. At the bottom of this template you will see the following code. If you change the lastxdays variable you can have BlogCFC search further back.

   1:  <cfset params.lastxdays = 30>
   2:   
   3:  <cfset params.lastxdays = 90>

One other alternative which Dan brought up is to make an effort to post more articles which is exactly what I have been trying to follow.


Comments

#1 Posted By: Charlie Arehart Posted On: 7/13/07 7:11 PM
Very nice. Thanks for that, Dan. I am indeed bummed to come across blogs with that message. Some would go away thinking the person has written nothing, if they don't notice the archives list or categories (since some show a calendar, search, and RSS pod at the top, someone could indeed easily miss those).

This is a tip many of them should learn.
#2 Posted By: Will Wilson Posted On: 5/6/08 6:47 AM
Hi Dan,

I'm just trying this out and I can't find the cfset in getMode.cfm. The only place it seems to occur is in pods/recent.cfm.

Could this be due to an update? I'm indecisive as to whether I've found the right cfset, from where its placed I'd imagine it to be for the recent entries pod exclusively, although it's not var'd? Help :S
#3 Posted By: Dan Vega Posted On: 5/6/08 10:57 AM |
Author Comment
It is near the bottom of the document. What version of BlogCFC are you using?
#4 Posted By: Will Wilson Posted On: 5/6/08 2:03 PM
It doesn't appear in my file. Im running version 5.9.002


Post Your Comment







Show Captcha

If you subscribe, any new posts to this thread will be sent to your email address.

Copyright © 2007 Dan Vega | BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.