Commit c4aed625 authored by Oliver Wand's avatar Oliver Wand

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 ...@@ -133,6 +133,11 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true); $documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$document->setField('extensionDocumentationLink_stringS', $documentationLink); $document->setField('extensionDocumentationLink_stringS', $documentationLink);
// use external manual if given
if ($extension->getExternalManual()) {
$document->setField('extensionDocumentationLink_stringS', $extension->getExternalManual());
}
// has manual // has manual
$document->setField('hasManual_boolS', false); $document->setField('hasManual_boolS', false);
if ($documentationLink || $extension->getExternalManual()) { if ($documentationLink || $extension->getExternalManual()) {
......
...@@ -66,7 +66,11 @@ ...@@ -66,7 +66,11 @@
<li class="list-inline-item badge badge-success">8 LTS</li> <li class="list-inline-item badge badge-success">8 LTS</li>
</f:if> </f:if>
<f:if condition="{document.hasManual_boolS}"> <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> </f:if>
</ul> </ul>
</div> </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