mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
Merge pull request #35 from 3Dgoo/patch-1
StringTagField documentation fix
This commit is contained in:
commit
a4ebe803d5
@ -58,8 +58,8 @@ class BlogPost extends DataObject {
|
||||
```
|
||||
|
||||
```php
|
||||
$field = StringTagField::create(
|
||||
'BlogTags', 'Blog Tags', array('one', 'two'), explode(',', $post->Tags)
|
||||
$field = StringTagField::create(
|
||||
'Tags', 'Tags', array('one', 'two'), explode(',', $this->Tags)
|
||||
);
|
||||
|
||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||
|
Loading…
Reference in New Issue
Block a user