라이믹스를 업데이트 하고 나니 첫화면 우측 아래에 있는 "가입인사"에 글 등록이 되지를 않아서
SoSiFam 한 줄 메모 게시판을 수정했습니다.
내용글이 없으면 글이 작성이 되지 않는 라이믹스의 규칙때문입니다.
1. write_memo.html 전체 수정
<load target="filter/insert.xml" />
<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" style="margin-bottom:10px;" class="write_author">
<div class="sm-input-body" style="text-align:center">
<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" class="board_write">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="." />
<input type="hidden" name="document_srl" value="{$document_srl}" />
<div class="write_header">
<input cond="$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" value="{htmlspecialchars($oDocument->getTitleText())}" />
<input cond="!$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" />
<input type="submit" value="가입등록" class="button_small button-blue" />
</div>
<div class="write_editor">
</div>
<div class="write_footer">
<div class="write_option">
<input type="checkbox" name="comment_status" class="iCheck" value="ALLOW" checked="checked"|cond="$oDocument->allowComment()" id="comment_status" />
<label for="comment_status">{$lang->allow_comment}</label>
<block cond="$is_logged">
<input type="checkbox" name="notify_message" class="iCheck" value="Y" checked="checked"|cond="$oDocument->useNotify()" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
</block>
<input cond="$grant->manager" type="checkbox" name="is_notice" value="Y" class="iCheck" checked="checked"|cond="$oDocument->isNotice()" id="is_notice" />
<label cond="$grant->manager" for="is_notice">{$lang->notice}</label>
<!--@if(is_array($status_list))-->
<!--@foreach($status_list AS $key=>$value)-->
<input type="radio" name="status" value="{$key}" id="{$key}" <!--@if($oDocument->get('status') == $key || ($key == 'PUBLIC' && !$document_srl))-->checked="checked"<!--@end--> />
<label for="{$key}">{$value}</label>
<!--@end-->
<!--@end-->
</div>
</div>
</form>
</div>
</form>
파일안 전체 내용을 위의 코드로 대체합니다.
2. insert_document.html 수정
<!--@if(!$oDocument->isGranted())-->
--생략
<!--@else-->
<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" class="write_author">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="content" value="." />
<div class="sm-input-body">
빨간색 부분 추가합니다.
3. write_form.html 수정
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
아래와 같이 수정합니다.
<input type="hidden" name="content" value="." />