mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-12-23 22:46:10 +01:00
Daniel Siepmann
a1dda725a0
Show an error message in backend, to allow editors to spot the issue. Hide issues in frontend to not break frontend. Relates: #1, #2
26 lines
913 B
HTML
26 lines
913 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="{skills}" as="skill">
|
|
<li>
|
|
<f:if condition="{skill.error}">
|
|
<f:then>
|
|
<f:be.infobox state="2">{skill.error}</f:be.infobox>
|
|
</f:then>
|
|
<f:else>
|
|
<strong>{skill.title}</strong><br>
|
|
{sd:verification.url(skill: skill.id)}
|
|
</f:else>
|
|
</f:if>
|
|
</li>
|
|
</f:for>
|
|
</ol>
|
|
</a>
|
|
</html>
|