Hi Community Folks,
I have a scenario in which I have to pass some custom data based on user's properties to welcome email template in nodebb. How can I achieve this ?
is there a way to add an if statement to header.tpl where it adds the class "error_page" to the page if the 404 template is rendered (page not found)? this will help me hide the sidebar, for example, using CSS.
Hi, that's not a bad idea, we already dynamically generate the body class, so I added the response code in there as well. https://github.com/NodeBB/NodeBB/commit/379a15632850e4ed0d7982cea2b5506ce06b7741.
If a page is 404 the body will have
page-status-404 if there is an internal error it will have
I tested that and it works great ! thanks again for your help