babylonjudge Posted July 24, 2010 Share Posted July 24, 2010 首页现在是三栏的我想将产品列表页改成两栏的 不知道要怎么改?(这个两栏不是说就是将右边栏目移动到左边,因为这样右边还是会空出一片。我想让其填充 就是两栏 而且填充整个画面。) 我搜索了下 发现版主曾经给一个人解答 如何改首页成两栏的 改的是footer.tpl 这个我就不太明白啦 为什么是footer.tpl文件 Link to comment Share on other sites More sharing options...
21846657 Posted July 24, 2010 Share Posted July 24, 2010 用图片说明下吧。是要把模块里的产品列表改成两栏,还是要把整个页面的structure改成2 columns(哪两栏)呢? Link to comment Share on other sites More sharing options...
babylonjudge Posted July 24, 2010 Author Share Posted July 24, 2010 就是单单产品页面 首页能改更好 但是我现在的这个首页估计不好改 就是改成两栏模式 Link to comment Share on other sites More sharing options...
21846657 Posted July 24, 2010 Share Posted July 24, 2010 哦,是要在product.php和index.php,不显示right column。先备份footer.tpl,再修改为: {if !$content_only} {if $page_name != 'index.php' OR $page_name != 'product.php'} <!-- Right --> {$HOOK_RIGHT_COLUMN} {/if} <!-- Footer --> {$HOOK_FOOTER} {/if} </body> </html> 因为footer.tpl是显示right column和footer的模板文件,所以要修改footer.tpl;如果是left column或center column,则header.tpl。 Link to comment Share on other sites More sharing options...
babylonjudge Posted July 24, 2010 Author Share Posted July 24, 2010 有点明白了 不知道不显示的那部分 会不会空出来 这个我去看看。。。 thanks a lot Link to comment Share on other sites More sharing options...
21846657 Posted July 24, 2010 Share Posted July 24, 2010 当然会空。所以你的center column要加宽到原right column的右侧边界。center column内的元素也要相应加宽。 Link to comment Share on other sites More sharing options...
babylonjudge Posted September 15, 2010 Author Share Posted September 15, 2010 这个问题再补充一点我按照你说的修改了之后发现不行不知道是不是那个判断语句没起效用。(用的不是默认模板 但同样在Footer.tpl中有调用RIGHT COLUMN) {if !$content_only} {$HOOK_RIGHT_COLUMN} {$HOOK_FOOTER} powered by ******.com {/if} </body> </html> Link to comment Share on other sites More sharing options...
21846657 Posted September 18, 2010 Share Posted September 18, 2010 下面是根据你的代码作的修改: {if !$content_only} {if $page_name != 'index.php' OR $page_name != 'product.php'} {$HOOK_RIGHT_COLUMN} {/if} {$HOOK_FOOTER} powered by ******.com {/if} </body> </html> Link to comment Share on other sites More sharing options...
babylonjudge Posted September 20, 2010 Author Share Posted September 20, 2010 按照上面的修改了完全没有反映不知道是什么原因 Link to comment Share on other sites More sharing options...
21846657 Posted September 20, 2010 Share Posted September 20, 2010 如果清空smarty cache了还是不行,我就不知道哪里出问题了。=( Link to comment Share on other sites More sharing options...
babylonjudge Posted September 20, 2010 Author Share Posted September 20, 2010 问题还在 我估计要再研究研究看看我的SMARTY CACHE一直都没有文件。。。总之 谢谢了 Link to comment Share on other sites More sharing options...
21846657 Posted September 21, 2010 Share Posted September 21, 2010 建议你搜索下如何清除“smarty cache”。 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