Commit 24eff667 authored by Thomas Löffler's avatar Thomas Löffler

Show manual link on search result list

parent 377dcdee
Pipeline #4762 passed with stages
in 5 minutes and 49 seconds
......@@ -133,6 +133,11 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$document->setField('extensionDocumentationLink_stringS', $documentationLink);
// use external manual if given
if ($extension->getExternalManual()) {
$document->setField('extensionDocumentationLink_stringS', $extension->getExternalManual());
}
// has manual
$document->setField('hasManual_boolS', false);
if ($documentationLink || $extension->getExternalManual()) {
......
......@@ -66,7 +66,11 @@
<li class="list-inline-item badge badge-success">8 LTS</li>
</f:if>
<f:if condition="{document.hasManual_boolS}">
<li class="list-inline-item badge badge-info"><i class="fa fa-book"></i> Has manual</li>
<li class="list-inline-item">
<f:link.external class="badge badge-info" uri="{document.extensionDocumentationLink_stringS}" rel="nofollow">
<i class="fa fa-book"></i> Show manual
</f:link.external>
</li>
</f:if>
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment