Wednesday, September 22, 2010

Opening a preview window from Page Edit

My site has the usual Page Edit page in the administration area, but
I'd like to add a 'Preview' button, which will open the page in a new
tab or window.

I've added 2 buttons:
Submit (the usual one), which saves the data and redirects back to
the pages index, and
Preview, which should take the POST data and show the page in a new
window, but also leave the original form intact in the original
window.

Is there a way that I can get the Preview action in the controller to
render the view in a new window?

Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: