[관리] 글쓰기 페이지 내용(textarea) 간단하게 하기 > 정보공유

본문 바로가기

정보공유

일반글
그누보드팁

[관리] 글쓰기 페이지 내용(textarea) 간단하게 하기

페이지 정보

게시물QR코드

본문

그누보드의 게시판의 기본적인 글쓰기 페이지에서의 내용 입력란은

에디터 사용을 위해서 여러가지 에디터쪽 변수나 스크립트와 연결되어있습니다.

여기 부분에서 일반적인 html과 같이 단순한 구조로 사용하고 싶을때

내용 입력 부분을 간단하게 하는방법을 살펴보겠습니다.

 

기존의 내용입력 부분의 소스코드는 아래와 같습니다.

게시판스킨경로/write.skin.php 파일을 열어보겠습니다.

<!-- 해당스킨경로/write.skin.php -->

<tr>

<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>

<td class="wr_content">

<?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 } ?>

</td>

</tr>

해당 소스코드 부분을 아래와 같이 바꾸시면 간단하게 표현이 가능합니다.

<!-- 해당스킨경로/write.skin.php -->

<tr>

<th scope="row">내용</th>

<td>

<textarea name="wr_content" id="wr_content" class="frm_input required" maxlength="255"><?=$write['wr_content']?></textarea>

</td>

</tr>

댓글목록

등록된 댓글이 없습니다.

  • Addr.부산광역시 동구 중앙대로 319, 9층 L4호(초량동, 부산YMCA빌딩) Email. gnuwiz@naver.com
  • BR. 625-68-00172 TRC. 2019-부산해운대-1186 TEL. 0507-1382-2790
All rights reserved.