Hi,
I’ve got a few questions regarding creating two ( or more ) channel entries at once. I’ve tried looking through the manual for other ( hopefully easier ) solutions, but haven’t found exactly what I’ve been looking for. Searching elsewhere has yielded no results either.
On to the problem at hand.
I have a channel entry for creating images. I wanted them to be a separate channel entry as I want to register name and categories for an image so they can be linked up with news stories of the same category. I may also in the future want more information to be registered to an image.
I also have a channel entry for creating news stories where a user will have an option uploading/using an image. If the user doesn’t select any image it will randomly select an image that best matches the news item’s categories. If the user does upload an image I need it to be created as a channel entry for images separate of the news item.
I’ve been looking at SAEF for possibly having the two channel forms in one place and try to make use of scripts to make sure that the user has to fill in the image data first and save it before he can fill in the details of the news items.
Is this the best route to go? Are there alternatives for how to save additional information to an image without having to make it a separate channel?
A separate problem ( although tied in to this site ) is that I want on a specific channel to do some post-processing on an image the users provide. I’ve written the scripts in php for handling the post-processing, but I’m wondering what the best practice is for including this script when creating the channel entry? Is it what ExpressionEngine manual terms “Accessory” script or is that something completely different. I first looked at making this to a plugin but that looked like it would mean it would do the post processing whenever someone loaded the template. I just want this to be done once when the entry is created ( which provides a new image that I want to substitute for the one the user provided )
Any comments and pointing in the right direction would be most appreciated.
Cheers.