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
24eff667
Commit
24eff667
authored
Jun 23, 2018
by
Thomas Löffler
Browse files
Show manual link on search result list
parent
377dcdee
Pipeline
#4762
passed with stages
in 5 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Classes/Solr/Indexqueue/TerIndexer.php
View file @
24eff667
...
...
@@ -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
())
{
...
...
html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html
View file @
24eff667
...
...
@@ -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>
...
...
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