이미지 파일 다운로드 되게 했는데.. 2개 뜨네요
본문
<section id="bo_v_file">
<h2>첨부파일</h2>
<ul>
<?php
// 가변 파일
for ($i=0; $i<count($view['file']); $i++) {
//if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
?>
<li>
<i class="fa fa-download" aria-hidden="true"></i>
<a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download">
<strong><?php echo $view['file'][$i]['source'] ?></strong>
</a>
<?php echo $view['file'][$i]['content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
<span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드 | DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
</li>
<?php
}
}
?>
</ul>
</section>
이미지 파일을 첨부파일에 뜨게 하려고 했느데..
두개로 나오네요..
첨부파일만 나오게 해주세요.
---------------------------------
- 파일 다운로드하나
- 게시글링크주소 하나
----------------------------------
!-->답변 1
첨부파일 갯수는 관리자 모드 > 게시판 설정에서 "파일 업로드 개수"를 1로 수정하시면 됩니다,
링크주소 갯수는 config.php 파일이
define('G5_LINK_COUNT', 2); 부분을
define('G5_LINK_COUNT', 1); 로 수정하시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.