猪八戒 发表于 2018-5-15 12:26:31

完全自定义设计模板门户首页,栏目,专题模板方法

首先声明下,如果您对html、CSS、PHOTOSHOP不熟悉,特别是HTML、CSS请绕道

第一种:门户首页模板(index.htm,保存于\template\default\portal)

<!--{subtemplate common/header}-->
<style id="diy_style" type="text/css"></style>
这里可以随意自定义代码
<!--{subtemplate common/footer}-->第二种:栏目模板(必须命名list_xx.htm,保存于\template\default\portal),做好以后在栏目编辑里面选择相应模板,再就行DIY


<!--{subtemplate common/header}-->
<!--栏目模板——栏目名称自定义-->
<style id="diy_style" type="text/css"></style>
这里可以随意自定义代码
<!--{subtemplate common/footer}-->第三种:专题模板(必须命名portal_topic_xx.htm,保存于\template\default\portal),做好以后在专题添加或编辑中选择相应模板,选择是否统一页头和页尾,再DIY

<!--{subtemplate common/header}-->
<div id="pt" class="bm cl">
<!--{subtemplate common/simplesearchform}-->
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em> $topic
</div>
</div>
<link id="style_css" rel="stylesheet" type="text/css" href="{STATICURL}topic/t1/style.css?{VERHASH}">
<style id="diy_style" type="text/css"></style>
<div id="widgets"></div>
这里可以随意自定义代码
<!--{subtemplate common/footer}-->其中:
<div id="pt" class="bm cl">
<!--{subtemplate common/simplesearchform}-->
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em> $topic
</div>
</div>是位置和搜索框,可以删除
其中自定义代码部分需要DIY的地方使用下面代码,注意代码中的两个diy1必须保持一致,并且同一个htm页面中不得重复出现<!----><div id="diy1" class="area"></div><!---->
页: [1]
查看完整版本: 完全自定义设计模板门户首页,栏目,专题模板方法