Action after saved record

6 posts by 2 authors in: Forums > CMS Builder
Last Post: April 28, 2010   (RSS)

By concrete - April 26, 2010 - edited: April 27, 2010

After a new record is saved.

Is there a way to forward the admin back to the records edit page instead of the listing page.

My users are getting lost after they add a record because there is no way for them to see the listing num or where the listing is located due to the sort on the listings page.

Re: [Jason] Action after saved record

By concrete - April 28, 2010

Jason Changing the sorting isn't an option.

I need to specifically forward the user back to the edit page.

Re: [concrete] Action after saved record

By Jason - April 28, 2010

Hi,

Okay, you can try this.

You need to edit the file cmsAdmin/lib/menus/default/actionHandler.php

Part way down the file, you'll find an "if" clause that displays the "Saved" message after a save. Look for this:

// display alerts
if (@$_REQUEST['saved']) {


You can put your redirect code inside this if statement.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Action after saved record

By concrete - April 28, 2010

Ok Got it,

But how do i grab the record id, it's not passed in the url

Re: [concrete] Action after saved record

By Jason - April 28, 2010

You can access the record number through
$_REQUEST['saved'];
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/