@CodeALot - Thank you for your work-around idea. I am comfortable altering the code, but I do not want go this route as I will have to maintain these changes with each upgrade... and this problem is not worth that future commitment.
I feel like I am chasing my tail. I have gone through this thread re-reading all the suggestions, and I am starting to think I have either not made my needs clear, or I am trying to do something that OFA is not built to do. I'm going to try one more time to explain what I am trying to accomplish.
In the backend, I wanted to have two (2) fields, where my client could:
- upload or choose an image file (gif, jpg, png), with the option to either manually resize on upload, or resize later before output to page.
- optional - input a URL which will link from the image
On the frontend you would see the images, and if there is a URL (2.) input, the image would link to the sponsor website.
Every approach I have tried, has failed to fully achieve this goal:
- pre-upload files to Media folder. Resize must be preset through "Modify Settings" which I have hidden from Clients. Additionally, I don't want to preset the dimensions, because I have no way of knowing what dimensions will be best for each individual image. So, the image upload / resize is a problem... but I can use a OFA field of "File from a sub directory of Media" to get the image, and adding the optional URL link works - http://forum.WebsiteBaker.org/index.php/topic,27895.msg204454.html#msg204454
- use OFA "3. Add Images" to upload and resize image. This works great for the upload part of the equation, but then I can't get the "optional" URL link to work with this [IMAGE] without changing OFA files - http://forum.WebsiteBaker.org/index.php/topic,27895.msg210870.html#msg210870
I had originally used a WYSIWYG page, and instructed my clients on how to add all their Sponsor images (which they had to upload to a Media folder beforehand) and optional links. But of course this opens up all kinds of possible formatting issues, as clients "get creative".
So, then I switched to the News module, at least then I could have them separate the sponsors into individual posts, where if formatting went wrong, I could more quickly assist. This also allowed for them to make individual sponsors Posts Active or not. And I could use AnyNews to show a random sponsor on each page in the sidebar. This has been the best fit, but for years I have had to deal with so many headaches with new admins each year messing up the formatting.
So, when OFA came along, I thought I might be able to automate the process, and eliminate (or lessen) the chance for formatting issues. Just provide two fields. One to choose the image. One to add the URL (optional). But I can't seem to get to that point with and unmodified OFA.
Right now I have resigned to using OFA, with one WYSIWYG field. So, I can achieve everything I want as far as image sizing and linking, but the Admins still have the editor to play around in and mess things up.
If anyone has a solution, I would be grateful. If this is not something that can be done presently with an unmodified OFA, I will accept that, and move on. OFA is such a great module, which I use successfully in so many other ways, I won't hold this against it.