主题 : 如何获取栏目
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
11#   发表于:2017-07-19 15:07:38  IP:182.216.*.*
哪个模板
1
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
12#   发表于:2017-07-19 15:10:36  IP:111.85.*.*
是个自定义的模板,一个栏目模板[localimg]3[/localimg]
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
13#   发表于:2017-07-19 15:10:58  IP:111.85.*.*
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
14#   发表于:2017-07-19 15:11:50  IP:111.85.*.*
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
15#   发表于:2017-07-19 15:11:57  IP:182.216.*.*
只要是栏目模板就可以
1
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
16#   发表于:2017-07-19 15:13:43  IP:111.85.*.*
<!DOCTYPE HTML>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${channel.title!channel.name} - ${site.name} - Powered by JEECMS</title>
<meta http-equiv="keywords" content="${channel.keywords!}"/>
<meta http-equiv="description" content="${channel.description!}"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="/${res}/css/index.css" />

<!--[if lt IE 9]> 
<script src="/${res}/js/html5shiv.min.js"></script>
<script src="/${res}/js/respond.min.js"></script>
<![endif]-->

<script type="text/javascript">
function g(o){
return document.getElementById(o);
}
function HoverLi(x,y,m,n,counter){
for(var i=1;i<=counter;i++){
g(x+m+i).className='normaltab';
g(y+m+i).className='undis';
}
g(y+m+n).className='dis';
g(x+m+n).className='curr';
}
$(function() {
Cms.channelViewCount("${base}","${channel.id}");
Cms.siteFlow("${base}", location.href, document.referrer,"${site.config.flowSwitch?string}");




});
</script>

<head>

<body style="background-color:#f9f9f9;">
[#include "../include/top.html"/]
[#include "../include/header.html"/] 

<div class="main container job clearfix"> 
  <div class="job_main">
    <section class="job_banner"><img src="/${res}/images/job_banner.jpg"></section>
    <section class="job_search">
      <form action="${base}/searchJob.jspx" target="_self">

[@cms_channel id=channel.id]
栏目名称:${tag_bean.name}
栏目地址:${tab_bean.url}
[/@cms_channel]

      [@cms_model id="8"]
      [#list tag_bean.items as item]
      [#if item.field=="category"]
        [#assign category=item.optValue/]
      [#elseif item.field=="workplace"]
        [#assign workplace=item.optValue/]
      [/#if]
      [/#list]
      <input type="text" placeholder="请选择标题" />
         [/@cms_model]
      <input class="job_searchCon" name="q" type="text" id="txtKey" placeholder="网页设计" autocomplete="off" />
      <input class="job_searchMenu" type="submit" value="职位搜索" />
      </form>
    </section>
    <section class="job_list">
         [@cms_content_page count='10' orderBy='4' channelId=channel.id channelOption='1' dateFormat='yyyy-MM-dd']
      <table cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr class="job_list_menu">
            <td width="30%">标题</td>
            <td width="30%">文号</td>
            <td>发布机构</td>
            <td>发布时间</td>
          </tr>
           [#list tag_pagination.list as a]
          <tr>
            <td width="30%" class="job_name"><a href="${a.url}">${a.title}</a></td>
            <td width="30%">${a.companyName!}</td>
            <td>${a.attr.workplace!}</td>
            <td>${a.date?string(dateFormat)}</td>
          </tr>
           [/#list]
        </tbody>
      </table>
      [#include "../include/page.html"/]
      [/@cms_content_page]
    </section>
  </div>
</div>
[#include "../include/footer.html"/]
[#include "../include/right-fixed.html"/]
</body>
</html>
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
17#   发表于:2017-07-19 15:14:04  IP:111.85.*.*
我感觉这样写是木有问题的啊
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
18#   发表于:2017-07-19 15:14:07  IP:182.216.*.*
只要是栏目模板就可以
1
级别: 秀才
UID: 115127
积分:53 加为好友
威望: 2 精华: 0
主题:5 回复:27
注册时间:2017-07-18
在线时长:0
19#   发表于:2017-07-19 15:20:33  IP:111.85.*.*
我还想咨询下,怎么把模板静态化到磁盘上呢?现在在ide中找不到这个文件啊
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
20#   发表于:2017-07-19 15:24:31  IP:182.216.*.*
本来就生成到你硬盘下
ide里找不到那肯定是跟编译后的代码放一起了,你找到编译后的代码应该就能找到静态页了
1
|< < 1 2 3 > >| 共3页