Skip to content

Instantly share code, notes, and snippets.

@litzinger
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save litzinger/4e2c30ed204b667e1846 to your computer and use it in GitHub Desktop.

Select an option

Save litzinger/4e2c30ed204b667e1846 to your computer and use it in GitHub Desktop.
{exp:channel:form channel="pages" return="forms/channel-edit/ENTRY_ID" entry_id="{segment_3}"
include_jquery="yes"
include_assets="yes"
error_handling="inline"
use_live_url="yes"
datepicker="no"}
{field_errors}{error}{/field_errors}
<label for="title">Title</label>
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();">
<label for="url_title">URL Title</label>
<input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">
<label for="entry_date">Date</label>
<input type="text" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25">
<label for="expiration_date">Expiration Date</label>
<input type="text" name="expiration_date" id="expiration_date" value="{expiration_date}" maxlength="23" size="25">
<label for="comment_expiration_date">Comment Expiration Date</label>
<input type="text" name="comment_expiration_date" id="comment_expiration_date" value="{comment_expiration_date}" maxlength="23" size="25">
<label class="checkbox"><input type="checkbox" name="sticky" value="y" {sticky}> Make Entry Sticky</label>
<label class="checkbox"><input type="checkbox" name="allow_comments" value="y" {allow_comments}> Allow Comments</label>
{category_menu}
<label for="categories">Categories</label>
<select name="category[]" id="categories" size="4" multiple="multiple">
{select_options}
</select>
{/category_menu}
<input type="text" name="my_field_name" id="my_field_name" value="{page_body}">
<!-- This is the Wyvern field -->
{field:page_body}
{if captcha}
<label for="captcha">Please enter the word you see in the image below:</label>
{captcha}
<input type="text" name="captcha" value="{captcha_word}" maxlength="20">
{/if}
<input type="submit" name="submit" value="Submit">
{/exp:channel:form}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment