mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-06-29 07:59:26 +02:00
Merge pull request #31 from danrye/patch-1
Minor: TagField typo in readme
This commit is contained in:
commit
3bb0715835
|
@ -38,7 +38,7 @@ class BlogTag extends DataObject {
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$field = new TagField(
|
$field = new TagField(
|
||||||
'BlogTags', 'Blog Tags', BlogTags::get(), $post->BlogTags()
|
'BlogTags', 'Blog Tags', BlogTag::get(), $post->BlogTags()
|
||||||
);
|
);
|
||||||
|
|
||||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||||
|
|
Loading…
Reference in New Issue
Block a user