
网页底部一般由调用一个通用的底部模板生成,找到此模板进行修改就行,如果添加网站备案信息直接在模板中找到合适位置写上即可。
内容模块模板位置:/phpcms/templates/default/content/footer.html
会员中心页面模板底部位置:/phpcms/templates/default/member/footer.html
搜索模块页面底部模板:/phpcms/templates/default/search/footer.html
手机版页面底部模板:/phpcms/templates/default/wap/footer.html
先来看看默认专题子分类设置界面: 修改后的的专题子分类设置界面多了模板设置: 修改方法 第一步:修改 phpcms\modules\special index.php 找到$list_template?$list_template:'list'替换成$template=$info['template']?$info['template']:($list_template?$list_template:'list')第二步 修改 phpcms\modules\special special.php 找到`typedir` 替换成`typedir`, `template` 第三步 修改 phpcms\modules\special\templates special_add.tpl.php 找到</span><span id="typeTip">替换成<?phpecho form::select_template('default','special','list','name="type[1][template]"','list')?></span><span id="typeTip">找到var n = $('#option_list').find('input[name]').length/3+1替换成var n = $('#option_list').find('input[name]').length/3+1var template ='<?php echo str_replace("'", "\'", form::select_template('default', 'special', 'list', 'name="type[|id|][template]"', 'list'))?>'找到</span><a href="javascript:" 替换成'+template.replace('|id|', n)+'</span><a href="javascript:" 第三步 修改 phpcms\modules\special\templates special_edit.tpl.php 找到</span><?phpif($k!=1) 修改成<?phpecho form::select_template('default','special',$t['template'],'name="type['.$k.'][template]"','list')?></span><?phpif($k!=1) 找到var n = $('#option_list').find('input[type="text"]').length/3+1替换成var n = $('#option_list').find('input[type="text"]').length/3+1var template ='<?php echo str_replace("'", "\'", form::select_template('default', 'special', 'list', 'name="type[|id|][template]"', 'list'))?>'找到</span><a href="javascript:" 替换成'+template.replace('|id|', n)+'</span><a href="javascript:" 修改完了 可以去添加模版了 比如 list_hehe.html 然后专题页面就可以自动搜索到了。欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)