Formtool components are stored in the application scope. You will need to
either updateapp or reload the COAPI metadata (from the webtop) to load any
changes you make.

Keep in mind that if there is a syntax error in your component FarCry will
just ignore it and use the original core component.

Blair

On Tue, Feb 24, 2009 at 5:22 AM, Mark Jones <[email protected]> wrote:

>
> I have a content type that needs both a Logo and a grayscale version
> of that logo.  Since CF can easily generate the grayscale version from
> the original, I decided to extend the image formtool to accomplish
> this.  Ideally, I'd store the path to the grayscale image in its own
> field, but I decided to simplify things by just storing it in a folder
> "/gray/" under the primary image.
>
> Anyway, I've been having difficulties and am looking for some advice.
> FarCry 5.1, mySQL.
>
> I started by creating image.cfc in /farcry/projects/myproject/packages/
> formtools and having it extend farcry.core.packages.formtools.image.
>
> I overrode the GenerateImage method, and started out by invoking the
> parent method [ super.GenerateImage( argumentsCollection=arguments ) ]
>
> At this point, I would assume everything would work as it did before,
> but when uploading an image I get the error:
>
> C:\www\com.drinkinmate\wwwroot\farcry\projects\drinkinmate\mediaArchive
> \assets\stores\logos\3452B6A0-01C3-11DE-91680019D1A79478-1235391502-
> amazon.gif (The system cannot find the path specified)
>
> And I find that any changes I make to my new formtool, including a
> <cfabort>, have no impact on this.  I think I'm missing a step or a
> specific order in what parts of the admin need to be reloaded and
> which scaffolds need to be regenerated, etc.
>
> Any ideas?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to