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
How to set "Back to Menu" link target? (admin pages)
Re: How to set "Back to Menu" link target? (admin pages)
You cannot change the link directly. However, since scriptaculous/prototype is included in the admin by default you can do:
Regards,
D
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>
D
Re: How to set "Back to Menu" link target? (admin pages)
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
Thanks.
Tim