window.open without header and theme content

Topics: General
Jun 5, 2012 at 5:02 AM

Perhaps I'm missing the obvious here...  I need to open a window (window.open( ... )) from a link in a view in my module. And I need the page that is opened to have some pre-defined fields and controls.  I can open the window just fine, but it also includes the header, menu, etc from my theme.  Is there any way I can just open a blank window with inheriting all that content?

Coordinator
Jun 5, 2012 at 6:12 AM

You need to change the layout, which can be done in a variety of ways depending what drives the view that you are displaying in the new window. This being said, nobody does popups nowadays. They are annoying and are almost certainly going to get eaten by the browser's popup blocker. It's better and easier to use a modal dialog such as the one that comes with jQueryUI.

Jun 5, 2012 at 12:52 PM

ok thanks..  will look into the modal option.

Jun 5, 2012 at 1:29 PM

If the page you need 'layout-less' is the result of an action, you can mark the action with a [Themed(false)] attribute to disable the layout.