Page 1 of 1
How to set "Back to Menu" link target? (admin pages)
Posted: Thu Mar 22, 2007 7:54 pm
by skypanther
I'm working on the NMS module and have added some new functionality that involves a new template. At the moment, the "Back to Menu" link at the bottom of the admin page takes me back to the admin home page, not to the top page of the NMS module. How do I change that?
Tim
Re: How to set "Back to Menu" link target? (admin pages)
Posted: Fri Mar 23, 2007 12:37 am
by Dee
You cannot change the link directly. However, since scriptaculous/prototype is included in the admin by default you can do:
Code: Select all
<__script__ type="text/javascript">
Event.observe(window, 'load', function() {
var elementList = document.getElementsByClassName("pageback");
elementList[1].href = "moduleinterface.php?module=YourModule";
});
</__script>
Regards,
D
Re: How to set "Back to Menu" link target? (admin pages)
Posted: Fri Mar 23, 2007 12:55 am
by skypanther
Thanks. I'm surprised this can't be set. It will probably be easier / better for me to add a link within my template back to the top of the NMS pages than to rely on JavaScript.
Thanks.
Tim