[TYPO3-mvc] Re: Fluid group results
Steve Schütze
s.schuetze at queo-group.com
Mon Mar 18 13:33:11 CET 2013
No,
u can write your own modulo-ifelse-viewhelper like
class Tx_YourExt_ViewHelpers_ModuloViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractConditionViewHelper {
/**
* @param integer $value
* @param integer $modulo
* @return string
* @api
*/
public function render($value, $modulo) {
if ($value%$modulo==3) {
return $this->renderThenChild();
} else {
return $this->renderElseChild();
}
}
}
More information about the TYPO3-project-typo3v4mvc
mailing list