全新做一个自己的模板步骤是?应参考那些文档?

用于收藏精华贴子、网友共享的资料等。可以回复,不能发新贴。

版主: daimadaquan

版面规则
本版面不能发新贴,可以回复

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子daimadaquan » 2009-03-09 19:36

http://www.zen-cart.com/wiki/index.php/ ... s_-_Create

可以参考这个英文版的介绍。
头像
daimadaquan
论坛版主
论坛版主
 
帖子: 512
注册: 2009-03-09 17:34
地址: 江苏 南京

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子daimadaquan » 2009-03-09 19:39

文件路径 注释
index.php 主文件
includes/templates/[custom template folder]/common/html_header.php 页面的head部分
includes/templates/[custom template folder]/common/tpl_main_page.php 页面的body部分
includes/templates/[custom template folder]/common/tpl_header.php 所有页面的页眉
(column left)
includes/templates/[custom template folder]/common/main_template_vars.php 决定页面的内容部分,缺省为 'tmp_index_default.php'
首页 - 缺省
includes/templates/[custom template folder]/templates/tmp_index_default.php 首页模板文件
首页 - 显示分类
includes/templates/[custom template folder]/templates/tpl_index_categories.php 首页上显示分类时的模板文件
includes/modules/[custom template folder]/pages/index/category_row.php 选择要显示的分类
includes/templates/[custom template folder]/templates/tpl_index_category_row.php 显示分类
首页 - 显示指定分类
includes/templates/[custom template folder]/templates/tpl_index_product_list.php 首页上显示指定的分类时采用的模板文件
includes/modules/[custom template folder]/product_listing.php 将商品数据添加到数组
includes/templates/[custom template folder]/templates/tpl_modules_product_listing.php 显示商品数量和商品导航菜单
includes/templates/[custom template folder]/common/tpl_list_box_content.php 显示商品数组
商品信息页面
includes/templates/[custom template folder]/templates/tpl_product_info_display.php 显示单件商品信息
购物车页面
includes/templates/[custom template folder]/templates/tpl_shopping_cart_default.php 购物车页面
(column right)
includes/templates/[custom template folder]/common/tpl_footer.php 所有页面的页脚

偶已经看过了,好像目前为止,这个相对详细一些了。。
头像
daimadaquan
论坛版主
论坛版主
 
帖子: 512
注册: 2009-03-09 17:34
地址: 江苏 南京

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子浩霖 » 2009-03-19 21:29

topic6914.html有时间我整个完全说明文档
浩霖
高级会员
高级会员
 
帖子: 220
注册: 2009-03-19 10:43

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子urgent0072 » 2009-05-03 21:46

记住了 留个脚印 做记录
urgent0072
普通会员
普通会员
 
帖子: 40
注册: 2007-08-06 13:00

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子stanicja » 2009-05-07 17:22

第一次接触zen-cart 还得多多向各位学习!
stanicja
初来乍到
初来乍到
 
帖子: 3
注册: 2009-05-06 9:52

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子ldcr138 » 2010-08-30 22:33

很好很强大
ldcr138
中级会员
中级会员
 
帖子: 57
注册: 2009-09-07 15:06

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子yahui870718 » 2011-03-16 21:49

这个不错哦,mark
yahui870718
普通会员
普通会员
 
帖子: 48
注册: 2011-03-15 22:16
QQ 帐号: 493908654

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子city » 2011-03-17 9:49

不错不错~~
头像
city
中级会员
中级会员
 
帖子: 53
注册: 2011-02-25 19:34
QQ 帐号: 1693152885

Re: 全新做一个自己的模板步骤是?应参考那些文档?

帖子eaven » 2011-08-04 19:12

mark
eaven
普通会员
普通会员
 
帖子: 30
注册: 2011-04-11 13:06
QQ 帐号: 332597020

上一页

回到 精华共享

在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客