메뉴 건너뛰기

app

[XE] 게시판 팁

lispro062013.12.10 19:31조회 수 3343댓글 1

    • 글자 크기

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

lispro06 (비회원)
    • 글자 크기

댓글 달기

댓글 1
suritam9
2013.06.28 조회 2690
suritam9
2013.04.25 조회 6509
suritam9
2013.04.04 조회 2469
suritam9
2012.09.14 조회 2741
suritam9
2012.06.24 조회 2646
suritam9
2012.06.24 조회 3048
suritam9
2012.06.24 조회 2834
suritam9
2012.06.22 조회 2836
박영식
2011.09.22 조회 2866
박영식
2011.09.21 조회 2801
박영식
2011.02.18 조회 3277
첨부 (0)
위로