How to know what page is being accessed in header.tpl ?
-
@pichalite Thanks. I would rather do this on the server side though because I don't want to load this content on the profile page at all. With client side javascript, the best I can do is remove the node after the page is loaded and that is messy. It would have to be an if statement in the header tpl file. Something like this...
<!-- IF page.profile -->
Is that possible? I'm not sure what variable hold that information. Also, does nodebb reload the entire template when changing pages? Or does it only load the header file once? The latter would probably make a server side implementation not possible. Thanks again.
Copyright © 2024 NodeBB | Contributors