主页 > 论坛 > 设计与开发 >

模板覆盖的问题

You need to be logged in to get access to the forums. You can do so here

作者 信息

cheung boqun

星期五, 2008年 十月 31日 2:35:05 am

有这么个站点,就是首页比较特殊,其余的页面都是一个同样的布局。于是我想用EZ的templates override的功能,于是在override.ini.append.php里设置如下: [welcome_page] Source=node/view/full.tpl MatchFile=index.tpl Subdir=templates Match[node]=2 然后在design/my_site/override/templates/ 下放了一个index.tpl, 然后开启了调试模板的开关,发觉页面总是去找design/my_site/templates/pagelayout.tpl,而不会去找我的那个文件,大家有遇到过这种问题么? 我去官网上看到有人说这是因为EZ对首页始终会去找pagelayout.tpl,真是这样么?

Impossible is nothing

cheung boqun

星期五, 2008年 十月 31日 4:36:40 am

额...问题解决了,但是觉得有点蹊跷: Match[class_identifier]=folder 这句一定要写么? 按理说判断页面是否是首页,判断当前节点还不够么? Match[node]=2 奇怪

Impossible is nothing