帝国CMS 封面模板制作:封面模板的制作同首页模板;同样支持所有模板标签

正文概述 开源人   2024-10-12 00:13:29  
非终极栏目页面的两种形式选择:
1、封面式:不选择列表式,然后选择封面模板。可以制作跟首页一模一样的封面页面。
2、列表式:可选择列表式,然后选择列表模板。显示同终极栏目一样的列表页。
 
封面模板使用的地方
 
封面模板共使用在两个地方:(非列表式)
1、供非终极栏目使用
2、供专题使用
 
增加封面模板
 
1、登陆后台->点击大菜单“模板管理”>“管理封面模板”,进入如下界面:
图片1:菜单导航pZT1234FCOM专注游戏工具及源码例子分享
pZT1234FCOM专注游戏工具及源码例子分享
pZT1234FCOM专注游戏工具及源码例子分享
图片2:管理封面模板界面pZT1234FCOM专注游戏工具及源码例子分享
2、点击“增加封面模板”按钮后,进入增加封面模板页面,如图:
pZT1234FCOM专注游戏工具及源码例子分享
 
[!--pagetitle--]:页面标题 [!--news.url--]:网站地址(参数设置的站点地址) [!--newsnav--]:所在位置导航条
[!--self.classid--]:本栏目/专题ID [!--class.keywords--]:栏目/专题关键字 [!--class.classimg--]:栏目/专题缩略图
[!--class.intro--]:栏目/专题简介 [!--bclass.id--]: 父栏目ID [!--bclass.name--]:父栏目名称
支持公共模板变量 支持所有模板标签  
 
封面模板制作范例
 
实现如下效果:
1、用Dreamweaver制作好界面
2. 在制作好的界面加入模板标签及变量:
3. 将制作好的封面模板代码拷贝到系统后台“封面模板”中:
登陆后台->点击大菜单“模板管理”>“管理封面模板”:然后点击“增加封面模板”按钮,进入增加封面模板页面,如图:
4、最终内容模板的预览效果
5、附上面例子模板代码:
[!--temp.header--]
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="marTop" id="content">
 <tr>
  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" id="mid3">
    <tr>
     <td width="240" class="sider"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="marTop titleBar">
       <tr>
        <td><h4>地区导航</h4></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="8" class="titleBarBot">
       <tr>
        <td>[!--temp.infoarea--]</td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="marTop titleBar">
       <tr>
        <td><h4>分类导航</h4></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="8" class="titleBarBot none">
       <tr>
        <td>[!--temp.infoclassnav--]</td>
       </tr>
      </table>
      <div class="marTop"></div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="marTop titleBar">
       <tr>
        <td><h4>热门信息</h4></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="8" class="titleBarBot">
       <tr>
        <td><ul>
                    [ecmsinfo]'selfinfo',10,34,0,1,2,0[/ecmsinfo] 
            </ul>
                </td>
       </tr>
      </table><div class="marTop"></div></td>
     <td class="padLeft"><table  border="0" cellpadding="4" cellspacing="0" class="marTop">
       <form action="[!--news.url--]e/search/index.php" method="post" name="searchform" id="searchform">
        <tr>
         <td><select name="select">
           <option value="title,smalltext,myarea" selected="selected">不限</option>
           <option value="title">信息标题</option>
           <option value="smalltext">信息内容</option>
           <option value="myarea">所在地</option>
          </select></td>
         <td><input name="keyboard2" type="text" id="keyboard" /></td>
         <td><select name="select2">
           <option value='9'>所有分类</option>
           <option value='10'>|-房屋信息</option>
           <option value='11' >&nbsp;&nbsp;|-房屋求租</option>
           <option value='12' >&nbsp;&nbsp;|-房屋出租</option>
           <option value='13' >&nbsp;&nbsp;|-房屋求购</option>
           <option value='14' >&nbsp;&nbsp;|-房屋出售</option>
           <option value='15' >&nbsp;&nbsp;|-办公用房</option>
           <option value='16' >&nbsp;&nbsp;|-旺铺门面</option>
           <option value='17'>|-跳蚤市场</option>
           <option value='18' >&nbsp;&nbsp;|-电脑配件</option>
           <option value='19' >&nbsp;&nbsp;|-电器数码</option>
           <option value='20' >&nbsp;&nbsp;|-通讯产品</option>
           <option value='21' >&nbsp;&nbsp;|-居家用品</option>
           <option value='22'>|-同城生活</option>
           <option value='23' >&nbsp;&nbsp;|-本地新闻</option>
           <option value='24' >&nbsp;&nbsp;|-购物打折</option>
           <option value='25' >&nbsp;&nbsp;|-旅游活动</option>
           <option value='26' >&nbsp;&nbsp;|-便民告示</option>
           <option value='27'>|-求职招聘</option>
           <option value='28' >&nbsp;&nbsp;|-工程技术</option>
           <option value='29' >&nbsp;&nbsp;|-财务会计</option>
           <option value='30' >&nbsp;&nbsp;|-餐饮行业</option>
           <option value='31' >&nbsp;&nbsp;|-经营管理</option>
          </select>
         </td>
         <td style=" padding-left:5px;"><input name="Submit2" type="image" value="搜索" src="[!--news.url--]skin/default/images/search.gif" width="37" height="20" />
         </td>
         <td style=" padding-left:5px;">&nbsp;&nbsp;[<a href="[!--news.url--]e/DoInfo/ChangeClass.php?mid=8" target="_blank">发布信息</a>]&nbsp;[<a href="[!--news.url--]e/DoInfo/ListInfo.php?mid=8" target="_blank">管理信息</a>]</td>
        </tr>
       </form>
      </table><table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
        <td class="mid"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="titleBar">
          <tr>
           <td><h4><strong>最新信息</strong></h4></td>
          </tr>
         </table></td>
        <td class="padLeft mid"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="titleBar">
          <tr>
           <td><h4><strong>推荐信息</strong></h4></td>
          </tr>
         </table></td>
       </tr>
       <tr>
        <td class="mid"><table width="100%" border="0" cellpadding="0" cellspacing="8" class="titleBarBot">
          <tr>
           <td><ul>
                          [ecmsinfo]'selfinfo',10,38,0,0,2,0[/ecmsinfo] 
                        </ul></td>
          </tr>
         </table></td>
        <td class="padLeft mid"><table width="100%" border="0" cellpadding="0" cellspacing="8" class="titleBarBot">
          <tr>
           <td><ul>
                          [ecmsinfo]'selfinfo',10,38,0,0,2,0[/ecmsinfo] 
               </ul>
           </td>
          </tr>
         </table></td>
       </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="marTop">
       <tr>
        <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="570" height="80">
          <param name="movie" value="[!--news.url--]skin/default/images/empirecms.swf" />
          <param name="quality" value="high" />
          <embed src="[!--news.url--]skin/default/images/empirecms.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="80"></embed>
         </object></td>
       </tr>
      </table>
            <div class="main">[listsonclass]'selfinfo',10,38,0,0,7,0,0[/listsonclass]</div>
         </td>
    </tr>
   </table></td>
 </tr>
</table>
[!--temp.footer--]
 


声明:本文系互联网搜索而收集整理,不以盈利性为目的,文字、图文资料源于互联网且共享于互联网。
如有侵权,请联系 admin#1234f.com (#改@) 删除。