澳门新葡亰平台游戏网站帝国cms内容页如何调用description为内容简介呢?

6、下载不采用弹出窗口式说明

修改下载地址模板

帝国CMS内容页如何调用内容简介呢?春哥技术博客今天发现内容页模板优化不够好,所以想要进行优化一下,想要调用description为内容简介,其实很是简单,直接用!–smalltext–]获取就行了。附上内容页模板代码,代码截止于2015年1月9号版本。优化页面设置很重要,春哥进行这样设置就完全达到了优化的效果:meta
name=keywords content=!–pagekey–] /meta name=description
content=!–smalltext–]
/效果如下:QQ截图20150109224903.jpg!DOCTYPEHTMLheadmeta
charset=gb2312meta content=IE=11,IE=10,IE=9,IE=8meta name=viewport
content=width=device-width, initial-scale=1.0, user-scalable=0,
minimum-scale=1.0, maximum-scale=1.0meta name=apple-mobile-web-app-title
content=?=$public_r[sitename]?meta content=no-transform /meta
content=no-siteapp
/title!–pagetitle–]_!–class.name–]_?=$public_r[sitename]?/titlelink
rel=stylesheet id=main-css href=!–news.url–]skin/xiu/css/style.css
type=text/css media=all /link rel=canonical href=!–pagetitle–] /meta
name=keywords content=!–pagekey–] /meta name=description
content=!–smalltext–] /!–[if lt IE 9]script
src=!–news.url–]skin/xiu/js/html5.js/script![endif]–/headbodysection
class=container!–temp.header–]div class=content-wrapdiv
class=contentheader class=article-headerh1 class=article-titlea
href=!–titleurl–]!–title–]/a/h1ul
class=article-metali发布时间:!–newstime–]/lili?if($navinfor[writer]==)
{echo ;}else{echo span作者:.$navinfor[writer]./span;}?/lili
来源:?if($navinfor[befrom]==) {echo 春哥技术博客;}else{echo
.$navinfor[befrom].;}?/lili分类:a href=!–class.url–]
title=查看!–class.name–]中的全部文章 rel=category
tag!–class.name–]澳门新葡亰平台游戏网站 ,/a/lili class=post-views阅读(script
src=!–news.url–]e/public/ViewClick/?classid=!–classid–]id=!–id–]addclick=1/script)/lilia
href=#pinglun title=去发表你的看法评论/a/lili/li/ul/headerarticle
class=article-content!–newstext–]/articlediv
class=article-social[e:loop={selfinfo,1,0,0,id.$navinfor[id].,id
desc}]上一篇:a href=?phpecho
$bqsr[titleurl];$pre=true;??=esub($bqr[title],35)?/a[/e:loop]?phpif(empty($pre)){echo
上一篇:很抱歉没有了;}?nbsp;nbsp;nbsp;nbsp;[e:loop={selfinfo,1,0,0,id.$navinfor[id].,id
asc}]下一篇:a href=?phpecho
$bqsr[titleurl];$next=true;??=esub($bqr[title],35)?/a[/e:loop]?phpif(empty($next)){echo
下一篇:很抱歉没有了;}?div class=action-popoverdiv class=popover top
indiv class=arrow/divdiv class=popover-contenta class=bds_qzone
data-cmd=qzone/aa class=bds_tsina data-cmd=tsina/aa class=bds_weixin
data-cmd=weixin/aa class=bds_tqq data-cmd=tqq/aa class=bds_sqq
data-cmd=sqq/aa class=bds_renren data-cmd=renren/a/div/div/div/span
/divdiv class=article-tagsdiv class=bdsharebuttonboxa href=#
class=bds_more data-cmd=more/aa href=# class=bds_qzone data-cmd=qzone
title=分享到QQ空间/aa href=# class=bds_tsina data-cmd=tsina
title=分享到新浪微博/aa href=# class=bds_tqq data-cmd=tqq
title=分享到腾讯微博/aa href=# class=bds_renren data-cmd=renren
title=分享到人人网/aa href=# class=bds_weixin data-cmd=weixin
title=分享到微信/a/divscriptwindow._bd_share_config={common:{bdSnsKey:{},bdText:,bdMini:2,bdMiniList:false,bdPic:,bdStyle:1,bdSize:24},share:{}};with(document)0[(getElementsByTagName(head)[0]||body).appendChild(createElement(script)).src=+~(-new
Date()/36e5)];/script/divdiv class=relatesh3
class=titlestrong相关阅读/strong/h3div id=hm_t_48712/div/divh3
class=title
id=pinglun/h3!–temp.pl–]/div/div!–temp.sidebar–]!–temp.footer–]div
class=rolltoa href=javascript:;/a/div/sectionscript type=text/javascript
src=!–news.url–]skin/xiu/js/jquery.js?ver=1.0.1/scriptscript
type=text/javascript
src=!–news.url–]skin/xiu/js/bootstrap.js?ver=1.0.1/scriptscript
type=text/javascript
src=!–news.url–]skin/xiu/js/custom.js?ver=1.0.1/script/body/html

如果不采用弹出式下载的话,可依以下步骤完成:

修改下载地址模板("公共模板" -> "修改下载地址模板"):
将:
[ <a href=#edown
onclick=”window.open(‘[!–down.url–]’,”,’width=300,height=300′);”>[!–down.name–]</a>
]
改成:
[ <a
href=”/e/DownSys/GetDown/?classid=1&id=286&pathid=[!–pathid–]”>[!–down.name–]</a>
]

1.修改下载地址模板: 将: [ a href=#edown
onclick=”window.open(‘[!—down.url–]’,”,’width=300,height=300′);”[!—down.name–]/a
] 改成: [ a
href=”/e/DownSys/GetDown/?classid=[!—classid–]id=[!—id–]pathid=[!—pathid–]”[!—down.name–]/a
]

2.开启直接下载开关: 后台-》参数设置-》模型设置:“开启直接下载”

3.重新刷新下载表的页面即可

此方案缺点:起不到防盗链作用,如果你服务器本身就有防盗效果,才推荐使用此方式.

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图