PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

upload photo

  1. cinisli
    Member

    hello,

    how can i upload photo like this, there is no create content template at image upload field

    <a href="{Post Custom Field:6}" rel="prettyPhoto"><img src="{Post Custom Field:6}"></a>

    Posted 12 years ago on Wednesday July 11, 2012 | Permalink
  2. The image has to go somewhere, and that somewhere is into the post body. The post body will need a content template, and it can have just the template you typed there. It does not have to have any actual content. And you can hide it in your form so that the user does not actually enter anything but can simply upload the photo. Will that work for you?

    Posted 12 years ago on Wednesday July 11, 2012 | Permalink
  3. cinisli
    Member

    Actually i am not good at gravity form, so could you be more specific how to fix that please?

    Posted 12 years ago on Thursday July 12, 2012 | Permalink
  4. You're half way there. It sounds like you are creating a post and allowing an image upload? If that is true, you need to have a Post Title and Post Body as well as the image upload. Do you have all those fields in your form?

    If so, in the Post Body, you can use exactly what you typed in (I added a closing slash on the img tag):

    <a href="{Post Custom Field:6}" rel="prettyPhoto"><img src="{Post Custom Field:6}" /></a>

    As the "content template". Check the box "Create content template" and paste that into the box. Then save your form and submit a test.

    When you get to that point, we'll take a look at what you have and see what else we need to change. The merge tags might need to be modified a little bit, but you'll be on the right track. Show us what you have and we'll go from there. Show us what you're looking to create and we can help you replicate it.

    If you get stuck, export your form and email it to me at chris@rocketgenius.com and I'll take a look for you. Be sure to reference this post in your email if you choose to do that.

    Posted 12 years ago on Thursday July 12, 2012 | Permalink