I’m trying to set this up on a site. I have the SAEF redirecting to a page which includes the entry id at the end, so the SAEF redirect part of the system is working. I’m then using this code on the page to which the SAEF redirects (actually, the code is in another template which is embedded in the template which drives to redirect-to page):
{exp:gallery_extended:entry_form gallery_name="maingallery" return="afghanistan/submitthankyou" override_resize="no" related_id="{segment_3}”}
<div class="defaultBold">File:</div>
<input type="file" class="form" name="image1" size="35" />
<div class="defaultBold">Title:</div>
<input type="text" class="form" size="75" maxlength="100" name="title" value="" />
<div class="defaultBold">Custom Field 1:</div>
<input type="text" name="custom_field_one" class="form" size="75" maxlength="100" value="" />
<div class="defaultBold">Caption:</div>
<textarea name="caption" cols="75" rows="5" class="form" id="caption"></textarea>
<select name="category">
{category_menu}
<option value="{cat_id}">{cat_name}
{/category_menu}
</select>
<input name="submit" type="submit" class="form" value=" Upload Photo " />
<input type="hidden" name="apply_watermark" value="y" />
<input type="hidden" name="allow_comments" value="y" />
<input type=’hidden’ name="status" value="o" />
<input type="hidden" name="entry_date" id="entry_date" value="{current_time format="%Y-%m-%d %h:%i %A"}" />
{/exp:gallery_extended:entry_form}
As you can see, for the moment I’m just using the example from the gallery extended documentation to test the functionality.
Then, in the code for the entry where I want to display thumbnails of the image, I’m using this code in between the exp:weblog:entries tags (this is on a page which shows multiple entries from the same weblog):
{exp:gallery_extended:entries gallery_name="maingallery" related_id="{entry_id}"}
<img src="{thumb_url}" class="border" title="{title}" alt="{title}" />
{/exp:gallery_extended:entries}
There are currently three images in maingallery, only one of which I uploaded through the gallery_extended form. If I use the code above, no images appear. If I remove the related_id parameter, all three images appear.
Any thoughts on how I can get just the one image I uploaded in association with the weblog entry to appear?
Thanks in advance for any help anyone can offer - I appreciate it!
Frank