Hi,

I want to open my user login form in a lightbox but without all my page elements.
I want only the node content (without HEADER, SIDEBARS and FOOTER).
Here is my code:

<a href="/user" rel="lightmodal[search|width:400px; height:300px;]">LOGIN/REGISTER</a>

Must I create a new template like: node-page-lightbox.tpl.php?

Thanks

Comments

Did you come up with a solution?

Version:6.x-1.9» 7.x-1.x-dev

i'm interested in the same thing for a contact form (in this case the standard default form).

This is not the cleanest solution, but it is an all-CSS solution... You can do something like this:

#modalContainer #header,
#modalContainer #menu-bar,
#modalContainer .region-sidebar-second,
#modalContainer #footer {
display: none;
}

(Replace "#header" "#footer" etc with your own div ids)