Hi. I’m trying to use Solspace’s Form Helper plugin to create a stand alone edit form for my clients who own this site. I have been able to get the basic form working fairly easily, but I’m running into problems with the exp:form_helper:statuses tag.
Here’s the code I’m using:
{exp:weblog:entries weblog="newsletters" show_expired="yes" rdf="off"}
{exp:weblog:entry_form weblog="newsletters"}
<input type="hidden" name="entry_id" value="{entry_id}" />
{exp:form_helper:statuses entry_id="{entry_id}"}
<input type="radio" name="status" value="{entry_status}" {checked} /> {entry_status}
{/exp:form_helper:statuses}
<strong>Title</strong>
<input type="text" name="title" value="{title}" class="saeftextfield" maxlength="100" />
<strong>Image For The Article</strong>
(applies only to main weblog, newsletters and testbed; image should be 500 pixels wide by 100 pixels high)
<textarea name="{exp:form_helper:field_grabber field_name='entryimage'}" rows="10" class="saeftextarea2" />{exp:form_helper:field_parser}{entryimage}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='body' which='format'}" value="br" />
<strong>Body</strong>
<textarea name="{exp:form_helper:field_grabber field_name='body'}" rows="10" class="saeftextarea" />{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="br" />
<strong>Extended Text</strong>
<textarea name="{exp:form_helper:field_grabber field_name='extended'}" rows="10" class="saeftextarea" />{exp:form_helper:field_parser}{extended}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='extended' which='format'}" value="br" />
<input type="submit" name="submit" value="Submit" />
{/exp:weblog:entry_form}
{/exp:weblog:entries}
The problem is that the status checkboxes don’t show up at all on the form.
If I use the standard status drop-down menu from a stand alone entry form:
{status_menu}
Status
<select name="status">
{select_options}
</select>
{/status_menu}
I can get the drop-down menu to show up on the form, and I can close an entry from that form. However, if I go back to the same url (basedomainname/index.php/templategroup/saef/entryid) to see if I can open the entry again, I just get white space where the form should be.
My ultimate objective is to enable the client to use a stand alone edit form to close an entry and to open it back up again, but I would sacrifice the “open it back up again” if necessary.
Thanks in advance for any help anyone can offer - I really appreciate it. Let me know if you need more information or further explanation.
Frank
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.