Commit c4aed625 authored by Oliver Wand's avatar Oliver Wand
Browse files

Merge branch '244-link-to-manual-on-main-page-and-search-results' into 'develop'

Resolve "Link to manual on main page and search results"

Closes #244

See merge request t3o/ter!357
parents 400d22ae 24eff667
Pipeline #4811 passed with stages
in 7 minutes and 1 second
......@@ -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 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
Supports Markdown
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