BlogCFC 5.1 Alpha 3

Once again, I'm just plain disappointed in you folks. Sure, I got some feedback, but not enough. I give, and give, and give, and you guys just take, and take and take. Well fine then. I'll release another alpha.

This version adds textblock support. What's a textblock? A block of text. I know, surprising, eh? A textblock is a useful way to store information you edit often. So for example, imagine your local user group uses the blog. You have a "Next Meeting" pod. Normally you edit the file yourself. But with textblock support, you could edit the data via the BlogCFC administrator.

To use the content in your pod, you would simply do:

<cfoutput>#application.textblock.getTextBlock("links").content#</cfoutput>

I could add a method that returns just the content subkey if folks think the above is a bit too complex. Shoot, I think I'll do that right now. Give me 5 minutes and I'll make this work as well:

<cfoutput>#application.textblock.getTextBlockContent("links")#</cfoutput>

Enjoy. Everything is in SVN (except the above, give me 5), and just to be clear, the first paragraph is a joke.

I've got two more changes in mind and then 5.1 is gold.

Comments
Nick Tong's Gravatar Hi Ray,

Is the syntax not ".body"? i.e.
<code>
<cfoutput>#application.textblock.getTextBlock("links").body#</cfoutput>
</code?
# Posted By Nick Tong | 7/9/06 4:21 PM
Nick Tong's Gravatar Ray is there any change that we can enter CF code within the new 'page' text - that way we can output text blocks on the pages that we create?
# Posted By Nick Tong | 7/9/06 4:52 PM
Emmet's Gravatar You know, its not as funny if you have to explain the punchline. ;)
# Posted By Emmet | 7/9/06 5:19 PM
Raymond Camden's Gravatar Hmm. No CF code. Maybe something like

<textblock label="links">

Thoughts?

By the way - Pages use the same code the Entries do to display, renderEntry, so if I made this would, you could use textbloks inside of blog entries as well.
# Posted By Raymond Camden | 7/9/06 5:19 PM
Raymond Camden's Gravatar Yes, it is .body, or use the new method I checked in and don't worry about it. ;)
# Posted By Raymond Camden | 7/9/06 5:20 PM
Nick Tong's Gravatar So you enter this tag within the 'body' of the 'Page', yeah that could work.
# Posted By Nick Tong | 7/9/06 5:33 PM
Phillip Senn's Gravatar What's a ColdFusion developer's favorite dessert?
Pound cake!
# Posted By Phillip Senn | 7/10/06 8:17 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner