Hi. I have made a safe page and i don’t know how to redirect the entry to the saef edit page. Cause I want that after the entry was added the user can edit the entry.
this is my manual code to edit the specific enty.
<a href="http://{url_title_path=">{title}</a>
<a href="http://{url_title_path=">{title}</a>
thanks..
Hi Karlo,
Do you mean that you have a Stand-Alone Entry Form that you are using to allow people to enter entries to a weblog and that after they have entered the data you want to return them to a Stand-Alone EDIT Form?
If that’s the case then all you need to have is :
{exp:weblog:entry_form weblog="default_site" return="{my_template_group}/edit" preview="site/entry"}
in your Stand-Alone ENTRY form tag, that should do it?
Best wishes,
Mark
thanks mark.. can i ask help again? there’s a problem in may SAEF edit form I using form_helper.
I have 2 sets of category group in the weblog. The 1st group have set of category1 category2 category3 and 2nd group have set of Category a category b category c.
But in the edit form the the 1st group doesn’t appear only the second group. there are no problem in the SAEF entry forms the 2 group of category appears.
<!-- Begin Edit Form -->
<table width="100%" cellspacing="1" cellpadding="3" border="0">
{exp:weblog:entries weblog="weblog" status="not closed" show_expired="yes" rdf="off" limit="1"}
{exp:form_helper:member_is_author author_id="{author_id}"}
{if member_not_author}
<tr><td>Sorry. Only the author of this entry is allowed to edit it.</td></tr>
{/if}
{exp:weblog:entry_form weblog="weblog" return="weblog/edit_entry/{entry_id}"}
<input type="hidden" name="entry_id" value="{entry_id}" />
<tr class="row0">
<td valign="top" class="light">Title</td>
<td valign="top"><input type="text" name="title" value="{title}" /></td>
</tr>
<tr class="row1">
<td valign="top" class="light">Description</td>
<td valign="top"><textarea name="{exp:form_helper:field_grabber field_name='description'}" rows="10" cols="50" />{exp:form_helper:field_parser}{description}{/exp:form_helper:field_parser}</textarea></td>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='description' which='format'}" value="br" />
</tr>
<tr class="row2">
<td valign="top" class="light">URL</td>
<td valign="top"><input type="text" name="{exp:form_helper:field_grabber field_name='videourl'}" value="{videourl}" size="100" maxlength="100" /></td>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='videourl' which='format'}" value="br" />
</tr>
<tr class="row2">
<td valign="top" class="light">TAG</td>
<td valign="top"><input type="text" name="{exp:form_helper:field_grabber field_name='overlaytitle'}" value="{overlaytitle}" size="100" maxlength="100" /></td>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='title' which='format'}" value="br" />
</tr>
<tr class="row1">
<td valign="top" class="light">Categories</td>
<td valign="top">{exp:form_helper:categories entry_id="{entry_id}" parent_id="0" cat_id="4"}<input type="checkbox" name="category[]" value="{cat_id}" {checked} />{cat_name}
{/exp:form_helper:categories}</td>
</tr>
<tr class="row0">
<td valign="top" class="light"></td>
<td valign="top"><input type="submit" name="submit" value="Update" /></td>
</tr>
{/exp:weblog:entry_form}
{/exp:form_helper:member_is_author}
{/exp:weblog:entries}
</table>
<!-- End Edit Form -->
this is my code. thanks mark.
But in the edit form the the 1st group doesn’t appear only the second group. there are no problem in the SAEF entry forms the 2 group of category appears. This is my code. thanks mark.
Hi Karlo,
Sorry but I haven’t really used the Form Helper plugin much and you would probably get better answers over at the Solspace Forums but I’m not too sure what you meant by above as you say that only the second group appears but then you said that the 2 groups of category appear. Did you mean that the group with the two options appears and not the other one perhaps?
As I said though I haven’t really ever used the Form Helper Plugin and I know that the folk over at Solspace are exceptionally helpful and would probably be able to get this sorted for you very quickly so I would suggest maybe asking over there and in the mean time I will look into the plugin and setting it up on a form on my localhost test environment to see what might be happening and also someone else in the mean time may pop in here and let you know what the problem is.
Sorry I can’t help more at this stage but I will look into this and if someone else comes in in the mean time then at least I will know for next time 😉
Best wishes,
Mark
Hi Karlo,
I could be wrong on this but I very (and I do mean very 😉 ) quickly installed the form helper plugin and saw what it did.
I changed this code here :
<tr class="row0">
<td valign="top" class="light">Categories</td>
<td valign="top">
<select multiple name="category[]">
{exp:form_helper:categories entry_id="{entry_id}" parent_id="1"}
<option value="{cat_id}" {selected}>{cat_name}</option>
{/exp:form_helper:categories}
</select></td>
</tr>
so that it said this instead :
<tr class="row0">
<td valign="top" class="light">Categories</td>
<td valign="top">
<select multiple name="category[]">
{exp:form_helper:categories entry_id="{entry_id}" parent_id="0"}
<option value="{cat_id}" {selected}>{cat_name}</option>
{/exp:form_helper:categories}
</select></td>
</tr>
Note the 0 in the parent_id=”0” part instead of the 1 in the first example. This makes the categories come up in the select box as you would expect.
Don’t know if that helps at all?
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.