Hello everyone, there's a way to return to the mainpage of the manager after the user create/edit a resource?
Thanks
maybe i've badly explained what i need: I simply need to 'jump' the "View Resource data" page, the one that shows after edit a resource (attachment), and come back to the manager homepage. how can i do that?
thanks
-
☆ A M B ☆
- 24,524 Posts
-
☆ A M B ☆
- 24,524 Posts
It's technically correct, but since you only have the one event you don't really need the switch and references to the Event object. Just the sendRedirect line would be sufficient.
PS: with the above code the user is redirected to homepage jumping the "View Resource data" page (yes, i know that is exactly what i've asked few posts before...), there's a way to show the "View Resource data" page for tot seconds then go to homepage?
Thanks
-
☆ A M B ☆
- 24,524 Posts
Probably i've have found the script that save documents (save_content.processor.php) but i think i should put sleep() and $modx->sendRedirect() on the "View Resource data" page, if i knew where it is!
Thanks fo your baby-sitting!