Home Tutorials/How to Links Blog Photos

Blog roll for BlogCFC

I have been playing around with Ray Camden's BlogCFC for the past few weeks. I am planning on moving over from BlogCFM. One think that I really wanted with my new blog was the ability to easily update links in my blog roll. BlogCFC did not have this out the box, but I came up with a very easy whay of doing this. Using BlogCFC's Textblocks feature I created a textblok called "blog roll". Next I created a pod called blogroll.cfm and called my blog roll text block using

<cfquery name="QBlogroll" datasource="blogcfc">
SELECT BODY
FROM dbo.tblblogtextblocks
WHERE LABEL = 'Blog Roll'
</cfquery>

<cfmodule template="../../tags/podlayout.cfm" title="Blog Roll">

   <cfoutput>
#QBlogroll.body#

</cfoutput>

Now all I have to do is update the links in my blog roll textblock, refresh blog cache and my blog roll is updated.

Comments
todd sharp's Gravatar You might have also done this:

<cfoutput>
#application.textblock.getTextBlock("blog roll").body#
</cfoutput>
# Posted By todd sharp | 11/1/07 11:48 PM