Use existing create/edit/delete procedures

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 3, 2013   (RSS)

By rconring - January 2, 2013 - edited: January 2, 2013

I thought I saw some time ago somewhere in the forum a discussion on using the existing admin CRUD to manage a database view from the front end calling it with a link like http://somesite.com/cmsAdmin/admin.php?menu=sometable&action=edit&num=recordnumber.  This all works great, but I cannot figure out how to alter the redirect after save or cancel to go back from whence it came and reload the frontend page and cannot locate the discussion, if it did exist.

Is there a way to accomplish this without serious customization of the admin code?  I hate to complicate any future upgrades and this would allow me to present the data in highly customized views and not have to re-write the update procedures in the front end.

Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

Hi Ron,

Is the user already logged in to the back end for this to work, are you using the website Membership plugin plugin for this? Also, is there a particular reason your trying to get users to edit sections from the front end? 

Are you familiar with creating plugins? You could use the record_postsave hook to redirect the page after the changes have been made, and use the setPrefixedCookie and getPrefixedCookie to store the orignal URL and redirect value. This is something we could create for you if you require, if you send an e-mail to consulting@interactivetools.com, and we can give you an estimated cost.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com