您现在的位置是:首页 > 网站制作 > 网站建设网站建设
帝国cms 新闻模型系统增加下载字段
今夕何夕2019-07-11【网站建设】人已围观
简介例如这样的展示页面:需要增加的字段是 推荐指数,三个按钮增加这样的字段即可第一步,增加字段,增加完以后,返回上一个页面
例如这样的展示页面:

需要增加的字段是 推荐指数,三个按钮
增加这样的字段即可

第一步,增加字段






增加完以后,返回上一个页面


点击修改,进去后,勾选“自动生成表单模型”最后提交

第二步,增加列表模板

页面模板内容(*)
列表内容模板(list.var) (*)
记得一定要勾选

需要增加的字段是 推荐指数,三个按钮
增加这样的字段即可

第一步,增加字段






增加完以后,返回上一个页面


点击修改,进去后,勾选“自动生成表单模型”最后提交

第二步,增加列表模板

页面模板内容(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 |
<!doctype html> < html > < head > < meta charset = "utf-8" > < title >[!--pagetitle--]</ title > < meta name = "keywords" content = "[!--pagekey--]" /> < meta name = "description" content = "[!--pagedes--]" /> < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < link href = "[!--news.url--]skin/jxhx/css/base.css" rel = "stylesheet" > < link href = "[!--news.url--]skin/jxhx/css/m.css" rel = "stylesheet" > < script src = "[!--news.url--]skin/jxhx/js/jquery-1.8.3.min.js" ></ script > < script src = "[!--news.url--]skin/jxhx/js/comm.js" ></ script > <!--[if lt IE 9]> <script src="[!--news.url--]skin/jxhx/js/modernizr.js"></script> <![endif]--> </ head > < body > <!--top begin--> [!--temp.header--] < article > <!--lbox begin--> < div class = "lbox" > < div class = "whitebg lanmu" > < img src = "[!--class.classimg--]" > < h1 >[!--class.name--]</ h1 > < p >[!--class.intro--]</ p > </ div > < div class = "ad whitebg" >[phomead]5[/phomead]</ div > [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] <!--pagelist--> < div class = "pagelist" >[!--show.listpage--]</ div > <!--pagelist end--> </ div > < div class = "rbox" > < div class = "whitebg paihang" > < h2 class = "htitle" >点击排行</ h2 > [!--temp.lmpaihang--] </ div > < div class = "whitebg tuijian" > < h2 class = "htitle" >本栏推荐</ h2 > [!--temp.lmtuijian--] </ div > < div class = "ad whitebg imgscale" > < ul > [phomead]12[/phomead] </ ul > </ div > [!--temp.tags--] [!--temp.lmlove--] [!--temp.ad2--] [!--temp.webinfos--] [!--temp.dashang--] </ div > </ article > [!--temp.footer--] </ body > </ html > |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 |
$star4=''; $star5=''; if($r[star4]) { $isfree='< i class = "star4" ></ i >'; } if($r[star5]) { $isfree='< i class = "star5" ></ i >'; } $listtemp=' < div class = "top_one whitebg" >< i class = "top_pic" >< a href = "[!--titleurl--]" target = "_blank" >< img src = "[!--titlepic--]" ></ a ></ i > < section class = "top_box" > < h2 >< a href = "[!--titleurl--]" target = "_blank" >[!--title--]</ a ></ h2 > < p class = "top_info" >[!--smalltext--]</ p > < p class = "top_time" >< b >最后更新</ b >:[!--newstime--]</ p > < p class = "top_tj" >< b >推荐指数</ b >:'.$isfree.'</ p > < span class = "top_link" >< a href = "[!--yulan--]" target = "_blank" class = "fufei" >在线预览</ a >< a href = "[!--titleurl--]" target = "_blank" >查看详情</ a >< a href = "[!--download--]" target = "_blank" >免费下载</ a ></ span > </ section > </ div > '; |

第三步,增加内容模板
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121 |
<!doctype html> < html > < head > < meta charset = "utf-8" > < title >[!--pagetitle--]</ title > < meta name = "keywords" content = "[!--pagekey--]" /> < meta name = "description" content = "[!--smalltext--]" /> < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < link href = "[!--news.url--]skin/jxhx/css/base.css" rel = "stylesheet" > < link href = "[!--news.url--]skin/jxhx/css/m.css" rel = "stylesheet" > < script src = "[!--news.url--]skin/jxhx/js/jquery-1.8.3.min.js" ></ script > < script src = "[!--news.url--]skin/jxhx/js/comm.js" ></ script > <!--[if lt IE 9]> <script src="[!--news.url--]skin/jxhx/js/modernizr.js"></script> <![endif]--> < script type = "text/javascript" src = "[!--news.url--]e/data/js/ajax.js" ></ script > </ head > < body > [!--temp.header--] < article > <!--lbox begin--> < div class = "lbox" > < div class = "top_one whitebg" >< i class = "top_pic" >< a href = "[!--titleurl--]" >< img src = "[!--titlepic--]" ></ a ></ i > < section class = "top_box" > < h2 >< a href = "[!--titleurl--]" >[!--title--]</ a ></ h2 > < p class = "top_info" >[!--smalltext--]</ p > < p class = "top_time" >< b >最后更新</ b >:[!--newstime--]</ p > <? if ($navinfor['star4']=="") { echo '<p class = "top_tj" >< b >推荐指数</ b >:< i class = "star5" ></ i ></ p >'; } if($navinfor['star5']=="") { echo '< p class = "top_tj" >< b >推荐指数</ b >:< i class = "star4" ></ i ></ p >'; } ?> < span class = "top_link" >< a href = "[!--yulan--]" target = "_blank" class = "fufei" >在线预览</ a >< a href = "[!--titleurl--]" target = "_blank" >查看详情</ a >< a href = "[!--download--]" target = "_blank" >免费下载</ a ></ span ></ section > </ div > < div class = "ad whitebg" >[phomead]5[/phomead]</ div > < div class
|