From 2622bbc674dd654ea0432448b9174648a54a19ca Mon Sep 17 00:00:00 2001
From: Georg Ringer <georg.ringer@gmail.com>
Date: Mon, 11 Nov 2019 13:45:35 +0100
Subject: [PATCH] [TASK] Show manual link in the action "Installed Extensions"

The link to the documentation of an extension, which has been
added with #89458, is now displayed in the list of
"Installed Extensions" as well.

Resolves: #89640
Releases: master
Change-Id: I00d33fb88d8c0b5ff1c03607f13bba60a67cdad8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62295
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Susanne Moog <look@susi.dev>
---
 ...re-89458-ShowLinkToOnlineDocsInExtensionManager.rst | 10 +++++++---
 .../Resources/Private/Templates/List/Index.html        | 10 ++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89458-ShowLinkToOnlineDocsInExtensionManager.rst b/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89458-ShowLinkToOnlineDocsInExtensionManager.rst
index 0a383c509c6b..484fe90195e0 100644
--- a/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89458-ShowLinkToOnlineDocsInExtensionManager.rst
+++ b/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89458-ShowLinkToOnlineDocsInExtensionManager.rst
@@ -10,13 +10,17 @@ Description
 ===========
 
 The export of extensions provided by https://extensions.typo3.org has been extended with the link
-to the documentation of an extension. This link is now shown in the list of extension as well as the detail view
-of extensions in the extension manager.
+to the documentation of an extension. This link is now shown in all lists of extensions as well
+as the detail view of extensions in the extension manager.
 
+It is recommended that extension authors add documentation for their extensions on docs.typo3.org.
+
+However, if an extension provides an external documentation source, the custom link takes precedence
+over any existing documentation at docs.typo3.org.
 
 Impact
 ======
 
-Extension authors can add a custom link to the manual in their TER extensions which is now shown in the TYPO3 backend.
+Extension documentation links are now available in the extension manager.
 
 .. index:: Backend, ext:extensionmanager
diff --git a/typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html b/typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
index 318cd3c2ab2a..ee4617482ffc 100644
--- a/typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
+++ b/typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
@@ -90,6 +90,16 @@
                                 <core:icon identifier="actions-system-extension-download" />
                             </f:link.action>
                             <em:reloadSqlData class="btn btn-default" extension="{extension}" />
+                            <f:if condition="{extension.terObject.documentationLink}">
+                                <f:then>
+                                    <a href="{extension.terObject.documentationLink}" target="_blank" rel="noopener noreferrer" class="btn btn-default">
+                                        <core:icon identifier="actions-system-extension-documentation" size="small" />
+                                    </a>
+                                </f:then>
+                                <f:else>
+                                    <span class="btn btn-default disabled"><core:icon identifier="empty-empty" size="small" /></span>
+                                </f:else>
+                            </f:if>
                         </em:processAvailableActions>
                     </div>
                 </td>
-- 
GitLab