Search the web
Sign In
New User? Sign Up
speckcms · Speck CMS
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Custom Content Types   Message List  
Reply | Forward Message #711 of 830 |
Re: Custom Content Types

Hi Graham,

Apologies for the delayed response, I hope this is still of use to you.

> With my latest project that is using SpeckCMS I have
> created a News Type. My question is:
>
> Is their a way that when an article goes Live that
> it will send out an email to everyone who has an
> account within the system. But of the Article is
> revised and goes live for another time that the system
> would not send out a duplicated email regarding this
> article.

You could add a contentPut method and a property to record whether
your email has been sent...

<cf_spProperty name="emailSent" .... type="Boolean" displaySize="0">

<cf_spHandler method="contentPut">

<!--- default value for hidden boolean property
(this isn't necessary with recent versions of speck) --->
<cfset content.emailSent = 0>

<cfif not content.emailSent>

<!--- send email --->
<cfmail ...>blah blah</cfmail>

<!--- update emailsent flag --->
<cfset content.emailSent = 1>

</cfif>

</cf_spHandler>

I haven't tested the code btw, but it should work fine.


Mark






Thu May 17, 2007 5:02 pm

markthickpaddy
Offline Offline
Send Email Send Email

Forward
Message #711 of 830 |
Expand Messages Author Sort by Date

With my latest project that is using SpeckCMS I have created a News Type. My question is: Is their a way that when an article goes Live that it will send out...
gspearson69
Offline Send Email
May 11, 2007
12:43 pm

Hi Graham, Apologies for the delayed response, I hope this is still of use to you. ... You could add a contentPut method and a property to record whether your...
Mark Woods
markthickpaddy
Offline Send Email
May 17, 2007
5:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help