smaldini/grails-website — pull request #16 by craigburke (2012-10-22 16:22:27+00:00)
Title: Testimonials progress

Here's my latest progress on this section. This include's the vallum's ajax uploader plugin (to simplify all the iframe nonsense necessary for IE).

The image upload works here, and you can also incorporate those images into testimonials (trying to keep it general enough to be used on wiki pages). The upload process also creates a thumbnail to make it a bit more obvious what image you're inserting into your wiki content.

I did run into an issue is the unique name field required for wikiImage. When a testimonial is created I can't really give it a prefix like I can for already existing wiki pages to ensure this uniqueness (right now all images are saved with a name like "testimonials/image-name.jpg." Still a decent chance of collision when uploading images of the same name for different testimonials. Any suggestions for how to better handle this (and any other comments suggestions) are much appreciated.