Closed (fixed)
Project:
Shadowbox
Version:
7.x-3.0-beta8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2012 at 09:47 UTC
Updated:
2 Dec 2012 at 05:31 UTC
Is this possible?
Currently i load one of my content types in a shadowbox, i have done this by theming this type without a header & footer. What i want is force shadowbox to close after the user submits the node/add form. i know this should be done by adding a button onClick event to the submit button of the form, but how can i implement this (where to put he code) and what's the code to use?
Can someone help me with this?
Thanks
Nielsvoo
Comments
Comment #0.0
nielsvoo commentedg
Comment #1
nielsvoo commentedI fixed it using rules....
how?
just add a close.php file to the root of your site with the following content
add a rule with a redirect to this page after a submission of your form. (see rules forms module)
thats it...
Comment #2
klucid commentedThank you for the solution! It's simple and effective.
Comment #2.0
klucid commentedg