XF 1.4 Check if template loaded through Overlay


Active member
I'm tinkering with ideas and want to be able to check if the template has been opened in an Overlay or not.

I'd also be curious if there's an elegant way to bind a custom function to the overlayCloser element upon loading an overlay

To avoid an XY problem, my end result is to apply overflow:hidden to <html> so my overlay is the only scrollbar while it's open

Edit: I'd also like to just skip rendering some content via a var check if I'm able to pass a param to the template via template alone
Last edited:
Top Bottom