Slides from my talk at T3CON12CA.
See https://github.com/bwaidelich/Extensions.my_website_com and https://github.com/bwaidelich/Extensions.books for the corresponding TYPO3 Extensions.
22. 4. Continuously enhance model
Templates/Paper.html
<f:if condition="{paper.status} == 'accepted'">
<p>{paper.title} is accepted</p>
</f:if> This will will not work!
String comparison will be possible in Fluid!
But it‘s mostly not needed.
23. 4. Continuously enhance model
Model/Paper.php
/**
* @return boolean
*/
public function isAccepted() {
return $this->status === self::STATUS_ACCEPTED;
}
Templates/Paper.html
<f:if condition="{paper.accepted} ">
<p>{paper.title} is accepted</p>
</f:if>