Hi,

Thanks for the splendid module - great idea! Would it be possible to add the ability to input a redirect for, say, a form submission. So if a node form is loaded via modal frame then upon submission of that form the user is directed to the node path/page?

Thanks

Comments

OliverColeman’s picture

I'm sure it would be possible; would you like to create a patch? ;)

Should probably allow token replacement in the redirect address.

Actually, just realised you probably meant to redirect the top-level page to some address (rather than the modal frame), is that right? In either case I guess you could add a textfield to the menu item settings to specify a redirect address (and allow a special token, eg [default-redirect], to go where ever the form would normally redirect to).

pribeh’s picture

Cool, ya, I meant to redirect the top-level page. I will give it a stab however my php skills are weak :)

OliverColeman’s picture

Good on you. :) I just had a quick look and found http://drupal.org/project/customdestination , which allows specifying custom redirects for any form, so we shouldn't reimplement that in this module. Instead I'd suggest just having a single checkbox, "Redirect top-level page upon form submission and frame closing" (along with a more detailed description), in the settings for a menu item.