-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Show warning on linking suggestions when content element is …
…set to 'All Languages' instead of fatal exception
- Loading branch information
Showing
4 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 28 additions & 2 deletions
30
Resources/Private/Templates/TCA/InternalLinkingSuggestion.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
<div><p><f:translate key="LLL:EXT:yoast_seo/Resources/Private/Language/BackendModule.xlf:tx_yoastseo_linking_suggestions.intro" /></p></div> | ||
<div data-yoast-linking-suggestions /> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:if condition="{languageError}"> | ||
<f:then> | ||
<div class="alert alert-warning"> | ||
<h5 class="alert-heading alert-title"> | ||
<f:translate | ||
key="LLL:EXT:yoast_seo/Resources/Private/Language/BackendModule.xlf:tx_yoastseo_linking_suggestions.languageError.title" /> | ||
</h5> | ||
<div class="alert-body"> | ||
<f:translate | ||
key="LLL:EXT:yoast_seo/Resources/Private/Language/BackendModule.xlf:tx_yoastseo_linking_suggestions.languageError" /> | ||
</div> | ||
</div> | ||
</f:then> | ||
<f:else> | ||
<div> | ||
<p> | ||
<f:translate | ||
key="LLL:EXT:yoast_seo/Resources/Private/Language/BackendModule.xlf:tx_yoastseo_linking_suggestions.intro" /> | ||
</p> | ||
</div> | ||
<div data-yoast-linking-suggestions /> | ||
</f:else> | ||
</f:if> | ||
|
||
</html> |