\TextVariation
A variation that renders content editable text. Placeholders of the form {{property}} will be substituted with the relevant value from the context provider.
Synopsis
class TextVariation
extends PersonalisationVariation
{
- // members
- public static array $db = ;
- // Inherited members from PersonalisationVariation
- public static array $db;
- public static array $has_one;
- public static array $summary_fields;
- public static boolean $called;
- // methods
- public void getCMSFields()
- public void helperText()
- public void render()
- // Inherited methods from PersonalisationVariation
- public void NiceClassName()
- public void render()
- public FieldList getCMSFields()
- public string helperText()
- public void onBeforeWrite()
- public void onAfterWrite()
Hierarchy
Extends
Members
public
- $called
- $db
- $db
- $has_one
- $summary_fields
Methods
public
Inherited from PersonalisationVariation
public
- NiceClassName()
- getCMSFields() — Get fields. This is a bit hacky to get around ModelAdmin limitations. Basically, if we are adding a new record, we actually want to return the fields of the specific subclass not PersonalisationVariation itself.
- helperText() — This returns helper text that is displayed at the top of the editor form for a personaliation variation.
- onAfterWrite()
- onBeforeWrite()
- render()