[Tips] 통합검색 페이지 수정하기
2013.08.25 02:46
0
https://eond.com/344746
통합검색은 modules/integration_search/skins/default/ 이하 파일들을 수정하면 됩니다.
통합검색을 통해 검색을 하게 되면 검색 내용은 현재 창에 출력이 되지만 검색된 결과를 클릭하면 새창에 뜨게 됩니다.

window.open을 window.location.replace로 바꿔주면 현재창으로 뜨게 됩니다.
혹은 아예 그 부분을 삭제해도 됩니다.

문서 부분을 예로 들자면
modules/integration_search/skins/default/document.html
<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>


이 부분입니다.

onclick="window.open(this.href);return false;"

댓글은 comment.html
파일은 file.html 에서 지워야 하겠지요.

위 소스는 썸네일 부분이고, 제목 부분은

<a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitle()}</a>

지우기만 하면 됩니다.

modules/integration_search/skins/default/index.html을 보면..
        <ul class="searchResult">
        <!--@foreach($document_list as $no => $document)-->
            <li>
                <!--@if($document->thumbnailExists(100))-->
                <a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;"><img src="{$document->getThumbnail(100)}" alt="" width="100" height="100" class="thumb" /></a>
                <!--@end-->
                <dl>
                    <dt><a href="{getUrl('','document_srl',$document->document_srl)}" onclick="window.open(this.href);return false;">{$document->getTitleText()}</a> <!--@if($document->getCommentCount())--><span class="reply">[<em>{$document->getCommentCount()}</em>]</span> <!--@end--> | <span class="category"><a href="{getUrl('','mid',$mid_list[$document->get('module_srl')]->mid)}" onclick="window.open(this.href);return false;">{$mid_list[$document->get('module_srl')]->browser_title}</a></span></dt>



여기에서 빨간색 부분을 지워주시면 self로 뜨긴 합니다만...
어떤 문제가 생길지는 모르겠네요.
내용을 본후 다시 검색리스트 화면으로 돌아가고자할 경우 
'웹 페이지가 만료되었습니다'라고 메시지가 뜰 수도 있다는....

라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요