Active
Project:
Modal Frames from Menu Items
Version:
6.x-1.0-beta4
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 02:52 UTC
Updated:
11 Jun 2011 at 00:34 UTC
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
Comment #1
OliverColeman commentedI'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).
Comment #2
pribeh commentedCool, ya, I meant to redirect the top-level page. I will give it a stab however my php skills are weak :)
Comment #3
OliverColeman commentedGood 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.