Folks,

David and I have been cranking for weeks on a big Plum project for a
professional association where there's lots of complicated workflow to deal
with, and Plum has been coming through like a champ.

I did find one bug, however, and it's embarrassing: the
cf_DisplayAnnouncement custom tag doesn't have a <cfif ThisTag.ExecutionMode
EQ "Start"> inside the <cfsetting> directive, so it runs twice after you run
the CF_2CFMODULE utility on it.

I can't believe I missed this!  It's such a simple custom tag that I threw
together and never looked back.  All throughout testing CF_2CFMODULE I
hadn't had a content item with contentitemid = "Announcement", so it never
showed itself.  ARRGGHH!!

Anyway, I've entered it as a bug and it'll be fixed in V1.1.  In the
meantime here's the corrected code (copyright header omitted 'cause you're
sick of looking at it, too):

<cfsetting enablecfoutputonly="Yes">
<cfif ThisTag.ExecutionMode EQ "Start">
 <cfinvoke
  component="#Application.Content#"
  method="GetAnnouncement"
  returnvariable="announcement">

 <cfif announcement.RecordCount EQ 1>
  <cfoutput query="announcement">
  <div id="announcement">
   <h1>Announcement</h1>
   <p>#ContentBody#</p>
  </div>
  </cfoutput>
 </cfif>
</cfif>
<cfsetting enablecfoutputonly="No">

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000


**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to