CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

제가 능력이 모자라서, 스킨수정으로 만들었습니다.

 

module/ integraion_search / skin /document.html

 

파일에서 

 

 <ul class="searchResult"> </ul> 의 사이의 코드를

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{@ 
    $logged_info = Context::get('logged_info');
    $oModuleModel = &getModel('module');
    }
    <!--@foreach($output->data as $no => $document)-->
    {@ 
    $module $oModuleModel->getModuleInfoByDocumentSrl($document->get('document_srl'));
    $gg $oModuleModel->getGrant($module$logged_info);
 
    }
    <!--@if($gg->view)-->
 
        <li>
[{$module->browser_title}]
            <!--@if($document->thumbnailExists(80))-->
            <a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;"><img src="{$document->getThumbnail(80)}" alt="" width="80" height="80" class="thumb" /></a>
            <!--@end-->
            <dl>
                <dt><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitle()}</a> <!--@if($document->getCommentCount())--><span class="reply">[<em>{$document->getCommentCount()}</em>]</span> <!--@end--></dt>
 
                <dd>{$document->getSummary(200)}</dd>
            </dl>
            <address><strong>{$document->getNickName()}</strong> | <span class="time">{$document->getRegdate("Y-m-d H:i")}</span> | <span class="read">{$lang->readed_count}</span> <span class="readNum">{$document->get('readed_count')}</span><!--@if($document->get('voted_count'))--> | <span class="recom">{$lang->voted_count}</span> <span class="recomNum">{$document->get('voted_count')}</span><!--@end--></address>
 
        </li>
        <!--@end-->
    <!--@end-->

 

를 넣어주시면 됩니다. 

 

간단하게 설명드리면, logged_info와 모듈정보를 받아서 권한체크 해서 스킨에서 제외시켜줬습니다.

 

comment 는 $document->docment_srl을 $comment->document->srl

file과 멀티미디어는  $file->target_srl, $image->target_srl 로 넣어서 변경해주시면 됩니다.

 

단점이 검색시에 페이지와 검색숫자가 변경이 안됩니다.

 

view에서 걸러주면 좋을거 같은데.. 전 문서의 module을 불러와서 새로 module_srl_list를 만드는 법을 잘 모르겠어요

 

능력자님이 해주실 거라고 봅니다. ^^ 

 

권한에 관한 코드는 전에 컨텐츠위젯을 권한적용해놓으신 분것을 참고했습니다. 기억이 잘.. 

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기