Modify Post
This page describes the request data identifiers and response structure required to build a page for modifying posts.
Data Identifier
{
"dataID": "MODIFY_POST",
"return_url": "/return/url",
"post_key": "E477FEEB837326JEUDYFC505D20C022"
}| Key | Description |
|---|---|
| post_key | Unique post key |
| page_link_url | Link URL for comment list paging |
| page_link_hash | Paging navigation link hash (required when navigating to a hash link within a hash page) |
| page | Comment page number |
| list_per_page | Number of comments displayed per page |
| block_per_page | Number of page links shown in the paging block on a page |
HTML
<form id="frm_save_post">
<input type="hidden" name="board_seq" value="1">
<input type="hidden" name="return_url" value="/post/list">
<input type="text" id="subject" name="subject">
<input type="text" id="email" name="email">
<input type="text" id="cell_phone" name="cell_phone">
<input type="text" id="reg_name" name="reg_name">
<input type="password" id="password" name="password">
<textarea id="content" rows="10" name="content"></textarea>
<button type="submit" class="btn btn-primary px-4">Save</button>
</form>- form
<form id="frm_save_post"></form>Post save form. The id must be set to frm_save_post.
- board_seq
<input type="hidden" name="board_seq" value="1">The board sequence of the post to be saved. If needed, it can be implemented as a select using board_list from the Response Result.
- return_url
<input type="hidden" name="return_url" value="/post/list">URL of the page to move to after saving the post
- subject
<input type="text" id="subject" name="subject">Post subject
- email
<input type="text" id="email" name="email">Author email (not used when a member writes the post)
- cell_phone
<input type="text" id="cell_phone" name="cell_phone">Author mobile number (not used when a member writes the post)
- reg_name
<input type="text" id="reg_name" name="reg_name">Author name (not used when a member writes the post)
- password
<input type="password" id="password" name="password">Post password (required for non-members when modifying or deleting)
- content
<textarea id="content" rows="10" name="content"></textarea>Post content
Response Result
{
"post": [
{
"avatar_url": "/avatar/url",
"board_key": "BDC294781A60526557EFDCACE7EB36A7",
"board_name": "free board",
"board_seq": 100,
"cell_phone": "01089122302",
"contents": [
{"content":"post content","content_html_enc": "encoded html content"}
],
"create_date": "2025-05-30 02:53:34",
"create_date_type_mdhi": "05-30 02:53",
"member_seq": 300,
"modify_date": "2025-05-30 02:53:34",
"nickname": "winter",
"post_key": "E477FEEB837326JEUDYFC505D20C022",
"read_count": 928,
"reg_name": "micky",
"seq": 34,
"subject": "Post Subject",
"tags": [
"tag1",
"tag1",
"tag2",
"tag3"
],
"related_post": [
{
"post_key": "E477FEEB837326JEUDYFC505D20C022",
"subject": "Related Post Subject",
"reg_name": "Micky",
"avatar_url": "/avatar/url",
"create_date": "2025-05-20 02:53:34"
}
]
}
],
"board_list": [
{
"access_level": 0,
"board_code": "board_1001",
"board_key": "E477FEEBEE4DB8BD208AFC505D20C022",
"board_name": "free board",
"create_date": "2025-05-30 02:53:34",
"description": "description",
"geo_info_flg": "N",
"modify_date": "2025-05-30 02:53:34",
"seq": "100"
}
]
}| Key | Description |
|---|---|
| post[0].avatar_url | Avatar URL |
| post[0].board_key | Unique board key |
| post[0].board_name | Board name |
| post[0].board_seq | Board sequence |
| post[0].parent_post_seq | Target post sequence of the parent post (for replies) |
| post[0].contents | Array of post contents |
| post[0].contents[0].content | Post content |
| post[0].contents[0].content_html_enc | HTML-encoded post content |
| post[0].create_date | Creation date and time in Y-m-d H:i:s format |
| post[0].create_date_type_mdhi | Creation date and time in y-m-d h:i format |
| post[0].member_seq | Author member sequence |
| post[0].modify_date | Modification date and time in Y-m-d H:i:s format |
| post[0].nickname | Author nickname (current) |
| post[0].post_key | Unique post key |
| post[0].read_count | Post view count |
| post[0].reg_name | Author nickname (at the time of posting) |
| post[0].seq | Post sequence |
| post[0].subject | Title |
| post[0].tags | Tags Array(['tag'=>'tag1'],['tag'=>'tag2']) |
| post[0].related_post | Array of related posts |
| post[0].related_post[0].subject | Related post title |
| post[0].related_post[0].reg_name | Related post author name |
| post[0].related_post[0].nickname | Related post author nickname |
| post[0].related_post[0].avatar_url | Related post avatar URL |
| post[0].related_post[0].create_date | Related post creation date |
| post[0].related_post[0].post_key | Related post unique key |
<form id="frm_save_post">
<input type="hidden" name="post_key" colon:value="output.post[0].post_key"/>
<input type="hidden" name="return_url" value="list.html"/>
<div class="mb-3">
<label for="subject" class="form-label">Post subject</label>
<input type="text" class="form-control" id="subject" name="subject" colon:value="output.post[0].subject" placeholder="Input Subject">
</div>
<div class="mb-3">
<label for="email" class="form-label">Writer email</label>
<input type="text" class="form-control" id="email" name="email" colon:value="output.post[0].email" placeholder="Input email">
</div>
<div class="mb-3">
<label for="cell_phone" class="form-label">Writer mobile number</label>
<input type="text" class="form-control" id="cell_phone" name="cell_phone" colon:value="output.post[0].cell_phone" placeholder="Input mobile number">
</div>
<div class="mb-3">
<label for="reg_name" class="form-label">Writer name</label>
<input type="text" class="form-control" id="reg_name" name="reg_name" colon:value="output.post[0].reg_name" placeholder="Input name">
</div>
<div class="mb-3">
<label for="reg_name" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" value="" placeholder="Input password">
</div>
<div class="mb-3">
<label for="content" class="form-label">Post content</label>
<textarea class="form-control" id="content_1" name="content[]" rows="10" name="content" colon:value="output.post[0].content" placeholder="Input content"></textarea>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary px-4">Save</button>
</div>
</form><form id="frm_save_post">
<input type="hidden" name="post_key" value="<?=$output.post[0]['post_key'];?>"/>
<input type="hidden" name="return_url" value="list.html"/>
<div class="mb-3">
<label for="subject" class="form-label">Post subject</label>
<input type="text" class="form-control" id="subject" name="subject" value="<?=$output.post[0]['subject'];?>" placeholder="Input Subject">
</div>
<div class="mb-3">
<label for="email" class="form-label">Writer email</label>
<input type="text" class="form-control" id="email" name="email" value="<?=$output.post[0]['email'];?>" placeholder="Input email">
</div>
<div class="mb-3">
<label for="cell_phone" class="form-label">Writer mobile number</label>
<input type="text" class="form-control" id="cell_phone" name="cell_phone" value="<?=$output.post[0]['cell_phone'];?>" placeholder="Input mobile number">
</div>
<div class="mb-3">
<label for="reg_name" class="form-label">Writer name</label>
<input type="text" class="form-control" id="reg_name" name="reg_name" value="<?=$output.post[0]['reg_name'];?>" placeholder="Input name">
</div>
<div class="mb-3">
<label for="reg_name" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" value="" placeholder="Input password">
</div>
<div class="mb-3">
<label for="content" class="form-label">Post content</label>
<textarea class="form-control" id="content_1" name="content[]" rows="10" name="content" value="<?=$output.post[0]['content'];?>" placeholder="Input content"></textarea>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary px-4">Save</button>
</div>
</form>Related Links
User Discussions
ADD- There are no posts yet.