I am trying to use a separate file uploader plugin to upload photos as part of a custom post front end CRED form. I realize that the CRED form includes an image uploader and that it can be set with multiple instances, but this does not completely meet my needs. The file uploader I have selected works fine, but it does not associate the images with the post. Is there a way to integrate these uploaded files in the CRED form so that on Submit, the photos will be added as meta data to the post as they would if I used the CRED file uploader?
I see a button to Manage non-Toolset Post Fields with CRED and a button for Post Field Control, but I don't understand what these options do and I can't find any documentation for them. If these can be used to integrate a separate plugin, can you direct me to some instructions on using them?
Hi, it depends on the upload plugin and how it's set up. If the images are uploaded with AJAX before the CRED form is submitted, then you would need to be able to hook into those upload events and retrieve the URL(s) of each image(s). This part I cannot help you with, since it's a 3rd-party plugin and unrelated to Toolset. You could ask their support team to help you set up some dummy code using their API, if one is available.
If the images are not uploaded with AJAX, then it's a bit more straightforward and I may be able to assist. Either way, when the CRED form is submitted, you have to get those uploaded image URLs copied over to the CRED post's custom fields. This part I can help you with, I can work with you to create some code that will do this. The question is how to get those URLs into the CRED submission data. It depends on what you learn from your upload plugin authors. Ask if they offer an API, and which hooks we should use to get the image URLs after upload.
If it's a CRED edit form and not a CRED create form, this becomes even more complex if you use the 3rd-party plugin to allow users to edit these images. Now you need to be able to modify the 3rd party plugin's upload information when the CRED form is submitted, as well as the custom fields associated with the old image(s). Sounds rather complex.
I see a button to Manage non-Toolset Post Fields with CRED and a button for Post Field Control
These settings aren't really applicable here.
Let me know if you have further questions, or if you find out more about your upload plugin's API.
Thank you for your help. In looking into this more, I think it is beyond my skills. We'll have to go with a short-term simple solution, but in the long run, we'll want to try to solve this problem.
I saw some references in other support threads to a custom solution option from Toolset (sounded like we pay you to solve our custom problem). When I clicked on the link, it was broken. Is this something you still offer? Can you tell me who we contact to develop a scope and get a proposal and cost estimate?
Thank you.
We don't do that work in-house, but we do partner with several independent contractors who may be able to assist you. You can find their contact information here:
https://toolset.com/consultant/
Please let me know if you have any follow up questions and I'll be glad to fill in any details.