织梦怎么用?织梦新手网
大家好,关于织梦怎么用很多朋友都还不太明白,今天小编就来为大家分享关于织梦新手网的知识,希望对各位有所帮助!
DEDE织梦模板怎么用的
去官网下载最新版的dedecms程序(最新版的好像也是好多年前的)。
将uploads里的全部文件上传到网站根目录。
打开域名地址/install.php,填写数据库信息,安装。
此时网站页面为默认模板,想要换模板去网上搜织梦模板下载,将templets文件夹上传到网站根目录覆盖。
登陆后台系统设置站点设置模板风格名称填写templets里新模板文件夹名称。
更新生成主页处选择新模板文件夹内的index.htm,更新首页浏览即可看到新模板效果。
织梦内容管理系统怎么使用
织梦内容管理系统,他将是您轻松建站的首选利器。采用XML名字空间风格核心模板:模板全部使用文件形式保存,对用户设计模板、网站升级转移均提供很大的便利,健壮的模板标签为站长DIY自己的网站提供了强有力的支持。高效率标签缓存机制:允许对类同的标签进行缓存,在生成HTML的时候,有利于提高系统反应速度,降低系统消耗的资源。模型与模块概念并存:在模型不能满足用户所有需求的情况下,DedeCMS推出一些互动的模块对系统进行补充,尽量满足用户的需求。众多的应用支持:为用户提供了各类网站建设的一体化解决方案,在本版本中,增加了分类、书库、黄页、圈子、问答等模块,补充一些用户的特殊要求。面向未来过渡:织梦团队的组建为织梦CMS的发展提供坚实的基础,在织梦团队未来的构想中,它以后将会具有更大的灵活性和稳定的性能。
织梦怎么调用文章页标题、关键字、描述,是文章页的。
你需要的标签:<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}"/>
<meta name="description" content="{dede:field.description function='html2text(@me)'/}"/>
另附:
DEDE全站通用标签:
根网址:
{dede:global.cfg_cmsurl/}/style/
标签里面的根网址:
[field:global.cfg_cmsurl/]
网站域名:
{dede:global.cfg_basehost/}
模板路径:
{dede:global.cfg_templets_skin/}
<title>{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}"/>
<meta name="keywords" content="{dede:global.cfg_keywords/}"/>
频道页标题、关键字:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}"/>
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}"/>
摘要:
[field:description function='cn_substr(@me,110)'/]
日期:
[field:pubdate function=MyDate('m-d',@me)/]
[field:pubdate function=MyDate('20y-m-d',@me)/]
点击:[field:click/]
调用其他模板文件
{dede:include filename="head.htm"/}
当前位置:
{dede:field name='position'/}
seo标题
{dede:field.seotitle/}
文章ID:
[field:id/]
排序:
{dede:arclist row=5 orderby=pubdate titlelen=18}
[field:autoindex runphp='yes']@me=$GLOBALS['autoindex']-1;[/field:autoindex]
{/dede:arclist}
文章
[field:title/]
文章链接地址:
[field:arcurl/]
简略
[field:shorttitle/]
文章列表:
{dede:arclist typeid='' row='1' titlelen='24' orderby='pubdate'}
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a>
<li><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
文章显示:
<li><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a></li>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]">[field:title/]</a>
图片调用:
{dede:arclist row='1' typeid='' titlelen='24' orderby='pubdate' type='image.'}
[field:picname/]
{/dede:arclist}
{dede:field.litpic/}
商品文章页:
dede图片调用标签:
<img src={dede:field.litpic/}>
{dede:field.litpic/}
[field:imglink/]=<a href='[field:arcurl/]'><img src='[field:picname/]' border='0' width='imgwidth' height='imgheight'></a>
DEDE-列表/栏目页标签:
栏目内容:
{dede:field.content/}
调用分类信息:
{dede:arclist row=5 orderby=pubdate typeid='37.' imgwidth='124' imgheight='96'}
{dede:arclistsg orderby=’id’ titlelen=’24′ row=’10′ channelid=’-8′ typeid=’1,2′}
{/dede:arclistsg}
栏目列表页list标签:
{dede:list pagesize='10'}
<li>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" class="title">[field:title/]</a><span class="info">
<p class="intro">
[field:description/]...
</p>
</li>
{/dede:list}
列表分页/页码:
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
主目录:
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~'~rel~><span>~typename~</span></a></li>"}
<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10'}
<li><a href='[field:typeurl/]'><span>[field:typename/]</span></a></li><li class="line"></li>
{/dede:channel}
栏目,目录调用
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~'~rel~><span>~typename~</span></a></li>"}
<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
<UL>
{dede:channel typeid=39 type='son' noself='yes'}
<LI><a rel="external nofollow" rel="external nofollow" href="[field:typeurl/]">[field:typename/]</a></LI>
{/dede:channel}
</UL>
[field:typelink/]
带标题的二级目录链接
<a rel="external nofollow" rel="external nofollow" href="[field:typeurl/]" title='[field:typename/]'>[field:typename/]</a>
{dede:ask row='6' qtype='new' tid='0' titlelen='24'}
<dd>
<span class="tclass">[<a href='[field:typeurl/]'>[field:tidname/]</a>]</span>
<span class="tlink"><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]">[field:title/]</a></span>
</dd>
{/dede:ask}
频道头条:
{dede:arclist flag='h' limit='0,1'}
问答模块标签
{dede:ask row='3' qtype='ok' tid='0' titlelen='26'}
<li>
[<a href='[field:typeurl/]'>[field:tidname/]</a>]
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]">[field:title/]</a>
</li>
{/dede:ask}
DEDE-文章页标签:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}"/>
<meta name="description" content="{dede:field.description function='html2text(@me)'/}"/>
文章正文标题
{dede:field.title/}
时间:
{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}
来源:
{dede:field.source/}
作者:
{dede:field.writer/}
点击:
<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:fieldname='mid'/}" type='text/javascript' language="javascript"></script>
摘要:
{dede:field.description runphp='yes'}
if(@me<>'')@me='<div class="intro">'.@me.'</div>';
{/dede:field.description}
文章正文内容:
{dede:field.body/}
{dede:field name='title'/}
文章商品图片:
{dede:field.litpic/}
{dede:field.litpic/}
商品内页:
<small>商品原价:</small><span>{dede:field.price/}元</span>
<small>优惠价格:</small><span class="fc-f60">{dede:field.trueprice/}元</span>
<small>品牌:</small><span>{dede:field.brand/}</span>
<small>单位:</small><span>{dede:field.units/}</span>
<small>上架日期:</small><span>{dede:field.pubdate function="MyDate('y-m-d H:i',@me)"/}</span>
<small>人气:</small><span><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script></span>
<form id="formcar" name="formcar" method="post" action="{dede:field name='phpurl'/}/posttocar.php">
<input type="hidden" name="id" value="{dede:field.id/}"/>
<input type="hidden" name="title" value="{dede:field.title/}"/>
<input type="hidden" name="price" value="{dede:field.trueprice/}"/>
<input type="hidden" name="units" value="{dede:field.units/}"/>
<small>购物车:</small><span><a rel="external nofollow" href="{dede:field name='phpurl'/}/car.php" target="_blank">查看购物车</a></span>
<small>购买:</small><span><button type="submit" name="button" class="btn-2">放入购物车</button></span>
DEDE-频道页标记:
{dede:channelartlist}
<dl class="tbox">
<dt><strong><a rel="external nofollow" rel="external nofollow" href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><span class="more"><a rel="external nofollow" rel="external nofollow" href="{dede:field name='typeurl'/}">更多...</a></span></dt>
<dd>
<ul class="d1 ico3">
{dede:arclist titlelen='60' row='8'}
<li><span class="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
</ul>
</dd>
</dl>
{/dede:channelartlist}
上一篇下一篇
{dede:prenext get='pre'/}
{dede:prenext get='next'/}
新增字段:
{dede:arclist typeid='45' row='8' imgwidth='105' imgheight='105' titlelen='16' addfields='trueprice,price' channelid='6'}
市场价¥[field:price/]
优惠价¥[field:trueprice/]
{/dede:arclist}
DEDE-其他标签:
备案:
{dede:global.cfg_beian/}
版权:
{dede:global.cfg_powerby/}
友情链接:自带li标记
{dede:flink row='24'/}
去掉li标签:
{dede:flink linktype='2' row='24'}[field:link/]{/dede:flink}
{dede:flink linktype='2' row='24' typeid="1"}[field:link/]|{/dede:flink}
A标签的友情链接:
{dede:flink type='textall' row='10'}
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]" target=_blank class="font-size3 color4">[field:webname/]</a>
{/dede:flink}
SQL代码
直接从数据库调用友情链接{dede:sql sql="Select* From dede_flink where logo='' order by id desc"}<a target="_blank" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]" title="[field:webname/]">[field:webname/]</a>{/dede:sql}
dede标签调用:
{dede:tag row='10' getall='1' sort='month'}
<li><a href='[field:link/]'>[field:tag/]</a></li>
{/dede:tag}
栏目链接标签:
<a rel="external nofollow" href="{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}">查看本类全部内容</a>
指定调用栏目标签:{dede:onetype typeid='ID'}[field:typename/]{/dede:onetype}
频道栏目调用标签:
{dede:channel type='self' typeid='7'}<li><a href='[field:typelink/]'>[field:typename/]</a></li>
{/dede:channel}
{dede:channel type='self' typeid='7' row='1'}<a href='[field:typelink/]'>[field:typename/]</a>{/dede:channel}
调用一个栏目:
{dede:type typeid='8'}
<a rel="external nofollow" href="[field:typelink/]">[field:typename/]</a>
{/dede:type}
限制行数标签:
{dede:arclist typeid='' row='2' limit='0,1' titlelen='24' orderby='pubdate'}
去掉标题的幻灯片代码:
<!-----幻灯片------->
<script language='javascript'>
linkarr= new Array();
picarr= new Array();
textarr= new Array();
var swf_width=546;
var swf_height=126;
//文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
var configtg='0xffffff||0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|4|3|1|_blank';
var files="";
var links="";
var texts="";
//这里设置调用标记
{dede:arclist flag='f' row='5'}
linkarr[[field:global.autoindex/]]="[field:arcurl/]";
picarr[[field:global.autoindex/]]="[field:litpic/]";
{/dede:arclist}
for(i=1;i<picarr.length;i++){
if(files=="") files= picarr[i];
else files+="|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links= linkarr[i];
else links+="|"+linkarr[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" width="'+ swf_width+'" height="'+ swf_height+'">');
document.write('<param name="movie" value="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');
document.write('<embed src="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_config='+configtg+'&menu="false" quality="high" width="'+ swf_width+'" height="'+ swf_height+'" type="application/x-shockwave-flash" pluginspage=""/>'); document.write('</object>');
</script>
<!-----幻灯片------->
文章原文地址:
<a rel="external nofollow" href="{dede:global.cfg_basehost/}{dede:field name='arcurl'/}">{dede:global.cfg_basehost/}{dede:field name='arcurl'/}</a>
注:以上内容由Braineo总结编辑并提供。
OK,本文到此结束,希望对大家有所帮助。