Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
f6c08c23
Commit
f6c08c23
authored
Feb 10, 2018
by
Thomas Löffler
Browse files
Show manual badge in search results if manual exists
parent
a319e6f0
Pipeline
#3539
passed with stages
in 4 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Classes/Solr/Indexqueue/TerIndexer.php
View file @
f6c08c23
...
...
@@ -125,6 +125,12 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$documentationLink
=
$documentationService
->
getDocumentationLink
(
$extension
->
getExtKey
(),
$extension
->
getLastVersion
()
->
getVersionString
(),
true
);
$document
->
setField
(
'extensionDocumentationLink_stringS'
,
$documentationLink
);
// has manual
$document
->
setField
(
'hasManual_boolS'
,
false
);
if
(
$documentationLink
||
$extension
->
getExternalManual
())
{
$document
->
setField
(
'hasManual_boolS'
,
true
);
}
// get multiple authors
$authors
=
[];
if
(
$extension
->
getLastVersion
()
&&
$extension
->
getLastVersion
()
->
getAuthor
())
{
...
...
html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html
View file @
f6c08c23
...
...
@@ -47,6 +47,9 @@
<f:if
condition=
"{document.supports8_boolS}"
>
<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>
</f:if>
</ul>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment