TYPO3ContentElements/Resources/Private/Templates/Backend/ContentElements/Skillset.html
Daniel Siepmann a1dda725a0
Handle unavailable skills and skillsets in backend and frontend
Show an error message in backend, to allow editors to spot the issue.
Hide issues in frontend to not break frontend.

Relates: #1, #2
2020-10-05 09:40:54 +02:00

26 lines
934 B
HTML

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
xmlns:sd="http://typo3.org/ns/SkillDisplay/Typo3Extension/ViewHelpers"
data-namespace-typo3-fluid="true">
<a href="{be:uri.editRecord(
uid: uid,
table: 'tt_content'
)}">
<ol>
<f:for each="{skillSets}" as="skillSet">
<li>
<f:if condition="{skillSet.error}">
<f:then>
<f:be.infobox state="2">{skillSet.error}</f:be.infobox>
</f:then>
<f:else>
<strong>{skillSet.title}</strong><br>
{sd:verification.url(skillSet: skillSet.id)}
</f:else>
</f:if>
</li>
</f:for>
</ol>
</a>
</html>