Eonsell Posted May 30, 2010 Share Posted May 30, 2010 请教下在head.tpl里的{$HOOK_TOP}是怎么调用modules里面的各个模板的,比如说顺序,默认是首先显示搜索这一块代码的,假如我想把head部分的模拟调整一下顺序,请问要怎么做?小弟是菜鸟,请各位大吓帮帮忙,谢谢。head.tpl代码:<!-- Header --> {$HOOK_TOP} Link to comment Share on other sites More sharing options...
Eonsell Posted May 30, 2010 Author Share Posted May 30, 2010 或者说可不可以将{$HOOK_TOP} 侵害成几个hook然后来调用,而不是现在这样只集中调用一个hook_top.谢谢 Link to comment Share on other sites More sharing options...
21846657 Posted June 1, 2010 Share Posted June 1, 2010 在安装时,模块会通过一个或若干个function(s),register某个或某些hook(s)。你可以通过DB里的表格ps_hook了解有哪些hooks,以及所对应的位置;甚至定制自己的hook。在tpl里,调整hooks的位置是可以的,但修改为其他hooks会产生错误。 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now