XF 2.0 Page without page container

Lukas W.

Well-known member
My forum isn't accessible for visitors that aren't logged in. I want to make the login & register page a bit more unique, but to do so, I want to strip them bare of most of the default page wrapper (mostly the header). Is there an elegant way to remove these parts from rendering through the controller or would it be best to just hide them via css?
 
You can set a container template within the content template. Take a look at the admin login template.
 
Thanks a lot @Chris D, I got it working and am off to a good start.
IFtuC9z.png
 
I'm trying to do the same. Unfortunately, I have no clue where to begin. I've looked into LOGIN_CONTAINER and into Admin/App, I got the basics (like how you add / remove the container stuff you don't want), but I don't know how to apply the logic from Admin/App into my custom controller. Or in other words: how do I get this custom view into a template? Would appreciate any help on this, thank you.
 
Code:
<xf:page option="template">LOGIN_CONTAINER</xf:page>

That's the part that defines a custom page container. That specific code is copied from the admin:login_form template.
 
Top Bottom