1792 Posts in 588 Topics by 560 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 226 Views |
-
Textareafield default value

7 January 2012 at 3:50pm
Hi, as i understand from the docs,
new TextareaField(
$name = "description",
$title = "Description",
$rows = 8,
$cols = 3,
$value = "This is the default description"
);However, when i tried to add a new textfield to a page:
function getCMSFields() {
...
$fields->addFieldToTab("Root.Content", new TextareaField('test', 'test', 5, 10, 'default value'));
...
}The textarea comes up with a blank content value.
The same "bug" occurs when using derivatives of TextareaFieldCan anyone do a quick test on the latest 2.4.6 and check if this happens for you too?
| 226 Views | ||
|
Page:
1
|
Go to Top |

