list_count와 page_count 설정
board.view.php 에서
if($this->module_info->list_count) $this->list_count = 10;//$this->module_info->list_count;
if($this->module_info->page_count) $this->page_count = 10;//$this->module_info->page_count;
10으로 설정했다.
게시판의 첨부이미지 표시
[skins/xe_####/skin.xml]
<var name="auto_img_insert" type="select">
<title xml:lang="ko">첨부 이미지 표시</title>
<options value="N">
<title xml:lang="ko">N</title>
<title xml:lang="en">N</title>
<title xml:lang="jp">N</title>
<title xml:lang="zh-CN">N</title>
<title xml:lang="es">N</title>
</options>
<options value="Y">
<title xml:lang="ko">Y</title>
<title xml:lang="en">Y</title>
<title xml:lang="jp">Y</title>
<title xml:lang="zh-CN">Y</title>
<title xml:lang="es">Y</title>
</options>
<default>N</default>
<description xml:lang="ko">
첨부파일이 이미지 파일이면 자동으로 본문에 삽입하시겠습니까?
</description>
<description xml:lang="en">
insert imagefile to maindisplay?
</description>
<description xml:lang="jp">
insert imagefile to maindisplay?
</description>
<description xml:lang="zh-CN">
insert imagefile to maindisplay?
</description>
<description xml:lang="es">
insert imagefile to maindisplay?
</description>
</var>
[skins/xe_####/view_document.html]
{$oDocument->getContent()}
대신에
<!--@if($module_info->auto_img_insert!='N')-->
{@ $uploaded_list = $oDocument->getUploadedFiles() }
{@$picture=""}
<!--@foreach($uploaded_list as $key => $file)-->
{@$file_explode=explode(".",strtoupper($file->source_filename))}
<!--@if($file_explode[1]=="GIF" || $file_explode[1]=="JPG" || $file_explode[1]=="JPEG" || $file_explode[1]=="PNG" || $file_explode[1]=="BMP")-->
{@$picture=$picture."<p align='center'><img src='".$file->uploaded_filename."' style='' editor_component='image_link' />"}
<!--@end-->
<!--@end-->
<!--@if($picture)-->
{@ $cont=$oDocument->get('content')}
{@ $oDocument->add('content',$cont.$picture)}
<!--@end-->
{$oDocument->getContent()}
<!--@else-->
{$oDocument->getContent()}
<!--@end-->
댓글 달기