Hello,
I am using formhelper and the way i am using it is like this:
If you are logged in and your membergroup is allowed to edit the pages, an EDIT link is displayed next to the tile of the entry. You click EDIT and are immediately show the EDIT template. You Edit the page, click submit and I’d like to send them directly back to the page they were editing. How do I do this?
Currently, the script sends them back to the home page. Here is the code I am using:
<!-- Begin Edit Form -->
{exp:weblog:entries weblog="{my_weblog}" status="not closed" limit="1" show_expired="yes" rdf="off"}
{exp:weblog:entry_form weblog="{my_weblog}" return="{my_template_group}/comments/{entry_id}"}
<h1>Edit: {title}</h1>
<table width="100%" cellspacing="2" cellpadding="3" border="0">
<input type="hidden" name="entry_id" value="{entry_id}" />
<input type="hidden" name="allow_comments" value="y" />
<input type='hidden' name='dst_enabled' value='y' {dst_enabled} />
<input type="hidden" name="entry_date" value="{entry_date format='%Y-%m-%d %g:%i %A'}" />
<tr class="row0">
<td valign="top" class="light">Title </td>
<td valign="top" width="100%"><input style="width:50%" type="text" name="title" value="{title}" /> <span class="submit"><input type="submit" name="submit" value="Update" /></span></td>
</tr>
<tr class="row1">
<td valign="top" class="light">Details </td>
<td valign="top"><textarea name="{exp:form_helper:field_grabber field_name='body''}" rows="18" cols="80" />{exp:form_helper:field_parser}{body}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='body' which='format'}" value="xhtml" /></td>
</tr>
<tr class="row0">
<td valign="top" class="light">Right Side Panel </td>
<td valign="top"><textarea name="{exp:form_helper:field_grabber field_name='right''}" rows="8" cols="80" />{exp:form_helper:field_parser}{right}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='right' which='format'}" value="none" /></td>
</tr>
</table>
{/exp:weblog:entry_form}
{/exp:weblog:entries}
<!-- End Edit Form -->
