DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

MS ViewHelpers

Diese Extension stellt eine Sammlung von ViewHelpern für die Verwendung in Fluid Templates bereit.

##Funktionen

ImageList

Funktion: Holt alle Bildpfade aus einem übergebenen HTML Quelltext.

Parameter: value (string)

Rückgabe: array

Aufruf Ausgabe: <msvh:ImageList value="{yourString}" /> Aufruf Konstante: {msvh:ImageList(value:yourString)}

Praxis Beispiel: <f:for each="{msvh:ImageList(value:newsItem.teaser)}" as="imageSrc"> ... </f:for>

MyFunctionName

Funktion: Beispielfunktion, gibt den übergebenen Wert multipliziert mit 2 zurück.

Parameter: value (integer)

Rückgabe: integer

Aufruf Ausgabe: <msvh:MyFunctionName value="5" /> Aufruf Konstante: {msvh:MyFunctionName(value:5)}

Ausgabe hier: 10