Message of the day:
SS4.3 is released! - https://www.silverstripe.org/blog/announcing-the-release-of-silverstripe-4-3
SilverStripe 4 related information and questions.
I have an Event system built on top of SilverStripe/Blog, but I also have just a Blog. Due to Event extending BlogPost, I can also create Events under my Blog, which isn't what I want.
In SS3 I could do
Blog: allowed_children: *BlogPost, with the
* indicating no subclasses of
BlogPost should be allowed there.
How to do this in SS4?
SilverStripe\Blog\Model\Blog: allowed_children: '*SilverStripe\Blog\Model\BlogPost' doesn't work... (edited)
can I see an example please? @wmk
private static $many_many_extraFields = [ 'HeaderGallery' => [ 'SortOrder' => 'Int' ] ];
@wmk yep could do that of course, would just be nice to see the correct i18n number format in the columns by default...
- $uploadField = new UploadField(
- $name = 'GalleryImages',
- $title = 'Upload one or more images (maximum 10)'
@robbieaverill what do you think about that? worth an issue? ^^