Jump to:

5517 Posts in 1734 Topics by 1222 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Gridfield - Save and add another

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1997 Views
  • jadedstudio
    Avatar
    Community Member
    5 Posts

    Gridfield - Save and add another Link to this post

    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...

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Gridfield - Save and add another Link to this post

    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!

  • Overt
    Avatar
    Community Member
    5 Posts

    Re: Gridfield - Save and add another Link to this post

    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

  • dacar
    Avatar
    Community Member
    168 Posts

    Re: Gridfield - Save and add another Link to this post

    Hi,

    same here. Has anybody a solution for that?

    Greetings, Carsten.

  • wmk
    Avatar
    Community Member
    45 Posts

    Re: Gridfield - Save and add another Link to this post

    Hi all,

    unclecheese made a module for this problem:

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

    cheers,

    wmk

  • botheredbybees
    Avatar
    Community Member
    4 Posts

    Re: Gridfield - Save and add another Link to this post

    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 https://github.com/unclecheese/silverstripe-gridfield-betterbuttons 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?

  • Rossel
    Avatar
    Community Member
    18 Posts

    Re: Gridfield - Save and add another Link to this post

    botheredbybees any luck resolving this? having the same issue.

  • botheredbybees
    Avatar
    Community Member
    4 Posts

    Re: Gridfield - Save and add another Link to this post

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

    1997 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.