게시판설정중에 내용글 없이 글 작성하기시 "내용글은 필수입니다"라는 팝업창이 출력되는군요.
문의를 한 결과 라이믹스에서는 보안상 그런 기능을 사용 할 수 없다고 하는군요.
https://xetown.com/qna/873356
그래서 제가 우회에서 작동하는 방법을 작성해 봅니다.
먼저 게시판에 "본문 작성기 출력"부분을 넣어야 겠죠(스케치북5 게시판 기준)
1. skin.xml에 추가
<var name="display_content_writer" type="radio">
<title xml:lang="ko">본문작성(Edit)기 출력</title>
<options value="">
<title xml:lang="ko">출력</title>
</options>
<options value="N">
<title xml:lang="ko">출력하지 않음</title>
</options>
<description xml:lang="ko">
본문작성(Edit)기의 출력여부를 선택합니다.
출력하지 않을시 문서의 내용이 없이도 글이 작성됩니다.
</description>
</var>
2. write_form.html 수정
<form cond="!Mobile::isMobileCheckByAgent() || $mi->m_editor==3" action="./" method="post" onsubmit="return procFilter(this, window.insert)" class="bd_wrt bd_wrt_main clear">
<input type="hidden" name="mid" value="{$mid}" />
<!--@if($oDocument->getContentText())-->
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<!--@else-->
<input type="hidden" name="content" value="{htmlspecialchars($mi->content_default)}" />
<!--@end-->
<input type="hidden" name="document_srl" value="{$document_srl}" />
<input cond="Mobile::isMobileCheckByAgent()" type="hidden" name="use_html" value="Y" />
위의 부분을 아래와 같이 수정
<form cond="!Mobile::isMobileCheckByAgent() || $mi->m_editor==3" action="./" method="post" onsubmit="return procFilter(this, window.insert)" class="bd_wrt bd_wrt_main clear">
<input type="hidden" name="mid" value="{$mid}" />
<!--@if(!$oDocument->getContentText() && $mi->content_default)-->
<input type="hidden" name="content" value="{htmlspecialchars($mi->content_default)}" />
<!--@else-->
<!--@if($mi->display_content_writer!="N")-->
<input type="hidden" name="content" value="{$oDocument->getContentText()?$oDocument->getContentText():nl2br($mi->content_default)}" />
<!--@else-->
<input type="hidden" name="content" value="." />
<!--@end-->
<!--@end-->
<input type="hidden" name="document_srl" value="{$document_srl}" />
<input cond="Mobile::isMobileCheckByAgent()" type="hidden" name="use_html" value="Y" />
3. _read.html 수정
<article class="cont">{$oDocument->getContent(false)}</article>
위의 부분을 아래와 같이 수정
<article class="cont"><!--@if($oDocument->get('content') !== '.')-->{$oDocument->getContent(false)}<!--@end--></article>
이상과 같이 수정하면 글 내용 없이도 글 작성이 됩니다.