greg_808

are you on a template? I think it should be Format('y') not format(y)

Nemanja Karadzic

anyway, any Idea why StartDate.format(y) doesn't return anything, while StartDate.Nice does (in summary fields)?

Mo

If you want something more lightweight, I updated this module for SS4 support a while ago: https://github.com/nathancox/silverstripe-hasoneautocompletefield

Show 1 attachment(s)
GitHub  
nathancox/silverstripe-hasoneautocompletefield

A CMS form field for adding has_one relationships using autocomplete. - nathancox/silverstripe-hasoneautocompletefield

Hide attachment content
Mo

We use silvershop/hasonefield a lot, basically uses a gridfield to manage a has_one (so you can do link existing / add new)

wmk

e.g. adding another Country in the dealers section "on the fly"

wmk

Used it sometimes in the past and was super happy.

wmk

quickadnew is for quickly adding a missing has_one item; choose existing from a dropdown.

dorsetdigital

This any good: https://github.com/silvershop/silverstripe-hasonefield ?

Show 1 attachment(s)
GitHub  
silvershop/silverstripe-hasonefield

Edit a has_one relationship using the gridfield editor, triggered by clicking a button. - silvershop/silverstripe-hasonefield

Hide attachment content
Nemanja Karadzic

any replacement for https://github.com/sheadawson/silverstripe-quickaddnew for Silverstripe 4?

Show 2 attachment(s)
GitHub  
sheadawson/silverstripe-quickaddnew

A decorator for a form field that manages as has_one relation, to allow adding a new object on the fly - sheadawson/silverstripe-quickaddnew

GitHub  
sheadawson/silverstripe-quickaddnew

A decorator for a form field that manages as has_one relation, to allow adding a new object on the fly - sheadawson/silverstripe-quickaddnew

Hide attachment content