로그인

  • 목록
  • 아래로
  • 위로
  • 쓰기
  • 검색

정보&강의 구글통합검색과 해쉬태그 애드온 사용시 에러 출력 해결


err : './modules/integration_search/skins/yjsoft_ggcse/document.html' template file does not exists.

 

해쉬태그를 도입하면 해쉬태그를 모아서 보여주는 기능이 통합검색을 통해서 이루어진다.

해당 메시지는 구글통합검색을 사용할 때 나오는 에러인데 이 에러를 해결하는 방법은 다음과 같다.

 

index.html 파일을 복사해서 document.html라는 이름으로 저장한다.

 

document.html 파일는 아래의 소스가 존재하면 된다.

 

<!--#include("header.html")-->
<script>
  (function() {
    var cx = '{$module_info->googleSearchCX}';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:searchresults-only></gcse:searchresults-only>

 

 


이런 글도 찾아보세요!

공유

facebooktwitterpinterestbandkakao story
퍼머링크

댓글 0

권한이 없습니다. 로그인

신고

"님의 댓글"

이 댓글을 신고 하시겠습니까?

삭제

"님의 댓글"

이 댓글을 삭제하시겠습니까?