2017-05-08 5 views
9

TYPO3 7.6.11 및 indexed_search 7.6.0을 사용하고 있습니다.색인 된 검색 extbase htmltags in output

나는 indexed_search에 extbase 플러그인을 사용하고 출력에서 ​​검색 단어를 표시하기 위해 HTML 태그를 이스케이프 처리합니다. 나는이 문제에이 버그 수정 발견

Test text with<strong class="tx-indexedsearch-redMarkup">search</strong> pattern. 

: https://forge.typo3.org/issues/77901

그러나 PageBrowsingResultsViewHelper.php 정확히 보이지 않는 파일 같은, 심지어 때 내가 검색 할 때 예를 들어,이 출력을 얻을 "검색" 변수 protected $escapeOutput = false;을 추가하면 아무 것도 변경되지 않습니다.

어디서 왔는지, 어디에서 탈출을 해제 할 수 있는지 알고 싶습니다.

답변

3

그것은 문제의 원인이 tx_indexedsearch의 부분을 덮어 또 다른 확장했다 ... -> 작업중인 템플릿이 출력됩니다 하나의 경우 항상 확인)

0

이 때문에 형식 객체 렌더링의 발생 결과는 {row.description} 객체에 렌더링되고 처음에는 형식이 설정되지 않습니다. 결과 ({row.description})를 HTML로 형식화해야합니다. 이를 위해 :

<div class="fourffCom col-sm-6"> 
    <f:format.html><h2>{row.title}</h2></f:format.html> 

    <f:if condition="{row.headerOnly} == 0"> 
     <!-- Format html --> 
     <f:format.html>{row.description}</f:format.html> 
     <ul> 
      <li> 
       <p><f:translate key="result.size" />&nbsp;</p> 
       <b>{row.size}</b> 
      </li> 
      <li> 
       <p class="tx-indexedsearch-text-item-crdate"><f:translate key="result.created" />&nbsp;</p> 
       <b class="tx-indexedsearch-text-item-crdate"><f:format.date>@{row.created}</f:format.date></b> 
      </li> 
      <li> 
       <p class="tx-indexedsearch-text-item-mtime"><f:translate key="result.modified" />&nbsp;</p> 
       <b class="tx-indexedsearch-text-item-mtime"><f:format.date>@{row.modified}</f:format.date></b> 
      </li> 
      <li> 

      </li> 
      <li> 
       <p><f:translate key="result.path" />&nbsp;</p> 
       <b><f:format.html>{row.path}</f:format.html></b> 
      </li> 
     </ul> 
    </f:if> 

    <f:if condition="{row.headerOnly} == 1"> 
     <!-- Format html --> 
     <f:format.html>{row.description}</f:format.html> 
    </f:if> 

    <f:if condition="{row.subresults}"> 
     <p class="tx-indexedsearch-list"> 
      <f:for each="{row.subresults.items}" as="subrow"> 
       <f:render partial="Searchresult" arguments="{row: subrow}" /> 
      </f:for> 
     </p> 
    </f:if> 
</div> 
: 여기
Go to the search result file. 
yourindexsearch/templatingpath/IndexedSearch/Partials/Searchresult.html 

은 전체 파일입니다