1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Check if template loaded through Overlay

Discussion in 'Styling and Customization Questions' started by Warchamp7, Jun 16, 2016.

  1. Warchamp7

    Warchamp7 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: Jun 16, 2016
  2. Warchamp7

    Warchamp7 Active Member

    Solved my issues by deciding not to fullscreen the overlay I was loading, and through use of ,overlayOnly and .nonOverlayOnly

Share This Page