Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Gridfield - Save and add another


Go to End
Reply


12 Posts   2370 Views

Avatar
jadedstudio

Community Member, 5 Posts

26 September 2012 at 8:38pm

Hi All,

I'm fairly new to SilverStripe, so I'm still getting to grips with it.

I have setup a datagrid / gridfield and find it annoying that when you save, you cannot go straight to add another item. Is there a way to add a button next to 'Create' and 'Cancel' which could say 'Create and add another' which saves the current item, and takes you back to a new form to add another item?

This would be a great feature as adding items to the gridfield seems to be so long winded.

Thanks in advance for any help...

Avatar
Howard

Community Member, 215 Posts

26 September 2012 at 11:26pm

Hey there, welcome to SilverStripe - currently this isn't built in but I think it's a good idea. I have raised it as an enhancement ticket on the core dev site http://open.silverstripe.org/ticket/7907

If you feel like diving in and building it then that would be more than welcome!

Avatar
Overt

Community Member, 5 Posts

21 January 2013 at 8:55am

Hi All,

I am having the same problems.

Is there a way to have two buttons:
1. save and go back to datagrid
2. save and leave on this page

Thanks

Avatar
dacar

Community Member, 168 Posts

11 February 2013 at 6:24am

Edited: 11/02/2013 6:24am

Hi,

same here. Has anybody a solution for that?

Greetings, Carsten.

Avatar
wmk

Community Member, 46 Posts

18 April 2013 at 7:16am

Hi all,

unclecheese made a module for this problem:

https://github.com/unclecheese/silverstripe-gridfield-betterbuttons

cheers,

wmk

Avatar
botheredbybees

Community Member, 4 Posts

27 May 2013 at 1:57pm

I'm not having any joy with the better buttons module and wonder if anyone can point out where I'm going wrong?

I've downloaded the zip file from [url]https://github.com/unclecheese/silverstripe-gridfield-betterbuttons[/url] and unpacked it into its own 'betterbuttons' directory. ran /dev/build and ?flush=all without error, but no new buttons are turning up on my add or edit pages for gridfield records.

I'm running the site in dev mode, but no error messages are showing up on the screen or in the error log file.

Should I be adding any code to the gridfield config with addComponent?

Avatar
Rossel

Community Member, 18 Posts

14 June 2013 at 5:56pm

botheredbybees any luck resolving this? having the same issue.

Avatar
botheredbybees

Community Member, 4 Posts

21 June 2013 at 4:14pm

nope, I've had to shelve this one and go back to Silverstripe's default record adding clickfest

Go to Top