View more context

 

Mo

At the moment I am scratching my head over the performance implications of checking canView over a list of records

Dave Toews

Can anyone recommend me an up-to-date (SS4) module for a field that manages has_one records? Preferably something where I can edit inline w/o jumping to another edit screen. Looking at a few modules but they all have sparse docs and/or look out of date.

https://github.com/satrun77/silverstripe-hasoneselector https://github.com/silvershop/silverstripe-hasonefield https://github.com/stevie-mayhew/hasoneedit

Show 6 attachment(s)
GitHub  
satrun77/silverstripe-hasoneselector

HasOneSelector is a module that provides CMS field to manage data object defined in a has_one relation. - satrun77/silverstripe-hasoneselector

GitHub  
silvershop/silverstripe-hasonefield

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

GitHub  
stevie-mayhew/hasoneedit

Allows editing the fields of a has_one object directly in the CMS - stevie-mayhew/hasoneedit

GitHub  
silvershop/silverstripe-hasonefield

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

GitHub  
stevie-mayhew/hasoneedit

Allows editing the fields of a has_one object directly in the CMS - stevie-mayhew/hasoneedit

GitHub  
stevie-mayhew/hasoneedit

Allows editing the fields of a has_one object directly in the CMS - stevie-mayhew/hasoneedit

Hide attachment content
Dave Toews

Or maybe I don't need a module, but just a handy pattern for pointing a GridField at a has_one relationship?

null

https://github.com/silvershop/silverstripe-hasonefield is really good, definitely not out of date

null

I haven't found the docs particularly lacking, it's a pretty simple module though it depends how flexible you want it to be

null

If you just want to manage a DataObject and not tweak the JS, it's pretty low-effort to get going

Dave Toews

Good to know. The SS3 screenshot and tags had me wondering how current it is. Thanks.

null

I use it quite a bit, if you get stuck ask away 😄

👍 (1) (1)
clodeindustrie

Hi there, anyone knows if there is a way to do INSERT ON DUPLICATE KEY UPDATE baked in SS? or do I need to do it with SQLUpdate and SQLInsert?