In the database
Unsolved is there a hook could change the response content before the response back to the client?
excuse me, i want to know that is there a hook could change the response content before the response back to the client. I want to change all the URL(include 'nodebb.min.js' and nodebb's css file and any static file) to my CDN URL in the response, but i do not found the hook what i want(i know that we can use the [filter:post.get] to change the url in the post, but how to do with else). By the way, is there a doc tell us when the hook will be call and how many parameter and what they are ?
请问有没有一个全局的钩子可以在响应的内容返回客户端之前对相应内容做一些处理,我想要将响应中的所有URL( 包括nodebb.min.js和nodebb的css文件和其他静态文件 )替换成CDN的URL, 但我目前好像没发现有这么一个hook( 帖子内容的修改我知道可以使用 [filter:post.get] ) ,
@actck No need to change the content via a hook. Simply change the html itself in the theme's header.tpl file.
@julian yes, maybe change the header file is a simple way. But i want to make it could be configured in my admin panel, is there a way? Don't forget page besides header.tpl or topic's page also has the static file , for example, the "groups" page. So i think a response hook is require.
Not really... it's not a common request, and I think it is still best to change it from the theme itself...
Or you can remove the font declarations altogether, from the theme, and then add them in via the Custom HTML form...