본문(wr_content) 없이 글쓰기

아래 값으로 본문을 대체하면 됩니다.

    <input type="hidden" name="wr_content" value="test">
    <?php if(0){?>
    <div class="write_div">
        <label for="wr_content" class="sound_only">내용<strong>필수</strong></label>
        <div class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
            <?php if($write_min || $write_max) { ?>
            <!-- 최소/최대 글자 수 사용 시 -->
            <p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
            <?php } ?>
            <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
            <?php if($write_min || $write_max) { ?>
            <!-- 최소/최대 글자 수 사용 시 -->
            <div id="char_count_wrap"><span id="char_count"></span>글자</div>
            <?php } ?>
        </div>
    </div>
    <?php }?>

|

댓글 5개

좋은 정보 감사드립니다!!

매번 내용이 필수라 게시판관리에서 글쓰기 기본내용에 아무말대잔치로 내용 넣어놓고 출력만 안되게 코드를 지웠었는데 전혀 생각지도 못한 쉬운 방법이 있었네요!!

왜 저 생각을 못했을까.....
이런 방법도 있군요. 감사합니다. ^^

너무 좋아요 굿

댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
2년 전 조회 1,785
2년 전 조회 2,280
2년 전 조회 3,940
2년 전 조회 1,481
2년 전 조회 1,878
2년 전 조회 1,565
2년 전 조회 2,059
2년 전 조회 3,092
2년 전 조회 2,279
2년 전 조회 2,453
2년 전 조회 1,977
2년 전 조회 2,297
2년 전 조회 2,860
2년 전 조회 1,941
2년 전 조회 2,326
2년 전 조회 1,723
2년 전 조회 2,333
2년 전 조회 3,827
2년 전 조회 1,794
2년 전 조회 2,006
2년 전 조회 1,922
2년 전 조회 2,186
2년 전 조회 5,072
2년 전 조회 2,091
2년 전 조회 3,072
2년 전 조회 2,126
2년 전 조회 1,530
2년 전 조회 2,564
2년 전 조회 2,200
2년 전 조회 2,200