David 发表于 2013-12-28 21:52:06

dede个人记录备忘

频道列表
{dede:channelartlist typeid='3,0'}
<dl class="tbox">
<dt>
<strong><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong>
<span class="more"><a href="{dede:field name='typeurl'/}">更多...</a></span>
</dt>
<dd>
<ul class="d1 ico3">
{dede:arclist titlelen='60' row='8'}
<li><span></span><a href=""></a></li>
{/dede:arclist}
</ul>
</dd>
</dl>
{/dede:channelartlist}
######################

{dede:arclist flag='h' limit='0,1' infolen='230'}
<h2><a href=""></a></h2>
<p>  ...<a href="">[查看全文]</a></p>
{/dede:arclist}

<a href="{dede:global.cfg_basehost/}">{dede:global.cfg_webname/}</a>
<a href='{dede:global.cfg_cmsurl/}/'>主页</a>
模板目录 {dede:global.cfg_templeturl/}

优化:
主标题: {dede:field name='seotitle'/}
关键字: {dede:field name='keywords'/}
描述字: {dede:field name='description'/}

{dede:field.title/}

标题
内容
网址
点击
评价
图址

标签
标签

频道地址




######
头条.h
推荐.c
幻灯.f
特荐.a
滚动.s
加粗.b
######

头条
{dede:arclist flag='h' limit='0,1' infolen='230'}
{/dede:arclist}

最新文档
{dede:arclist row=14 titlelen=32 noflag='h'}
{/dede:arclist}

推荐内容
{dede:arclist flag='c' titlelen=42 row=12}

本月热点
{dede:arclist sort='hot' subday='30' titlelen=42 row=12}

特别推荐
{dede:arclist flag='a' row='6' orderby='pubdate'}
<li>
<span></span>
<a href=""></a>
</li>
{/dede:arclist}

最近登陆的会员
{dede:memberlist row=6 signlen=30}

图文资讯
{dede:arclist row=5 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}

友情链接
{dede:flink row='24'/}


{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~>~typename~</a></li>"}
<li><a href='' ></a></li>
{/dede:channel}

热门标签
{dede:tag row='8' getall='1' sort='month'}<li><a href=''></a></li>
{/dede:tag}

搜索
<form action="{dede:field name='phpurl'/}/search.php" name="formsearch">

#会员
<form name="userlogin" action="{dede:global.cfg_memberurl/}/index_do.php" method="POST">
<input type="hidden" name="fmdo" value="login" />
<input type="hidden" name="dopost" value="login" />
<input type="hidden" name="keeptime" value="604800" />
<div class="fb">
<span>用户名:</span>
<input type="text" name="userid" size="20" class="ipt-txt" />
</div>
<div class="fb">
<span>密码:</span>
<input type="password" name="pwd" size="20" class="ipt-txt" />
</div>
<div class="fb">
<span>验证码:</span>
<input type="text" name="vdcode" size="8" class="ipt-txt" />
<img src="{dede:global.cfg_cmsurl/}/include/vdimgck.php" />
</div>
<div class="submit">
<button type="submit" class="btn-1">登录</button>
<a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user& dopost=regnew">注册帐号</a> <a href="{dede:global.cfg_memberurl/}/resetpassword.php">忘记密码?</a>
</div>
</form>

用户 userid

密码 pwd

验证码 <img src="{dede:global.cfg_cmsurl/}/include/vdimgck.php" />

<a href="{dede:global.cfg_memberurl/}">会员中心</a>
<a href="{dede:global.cfg_cmsurl/}/tags.php">TAG标签</a>
<a href="{dede:global.cfg_dataurl/}/sitemap.html">网站地图</a>
<a href="{dede:global.cfg_dataurl/}/rssmap.html">RSS订阅</a>

文章命名规则:
/dir/200903317707/ index.html

官方 {typedir}/{Y}{M}{D}/{aid}.html => /dir/20091130/92.html

优化 {typedir}/{Y}{M}{D}{aid}/index.html => /dir/2009113092/index.html

列表命名规则:
index1.html / index8.html

官方 {typedir}/list_{tid}_{page}.html => /dir/list_3_2.html list_3_3.html

优化 {typedir}/index{tid}{page}.html => /dir/index32.html

优化 {typedir}/index{page}.html => /dir/index2.html


{typedir}/{Y}{M}{D}{aid}/index.html
{typedir}/index{page}.html


采集替换 自定义处理接口:
$rpstr = "你要替换的东东";
$mystr = "想替换成的东东";
@me = str_replace($rpstr,$mystr,@me);

{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H:%M:%S","@me")' /}


封面模板 {style}/index_article.htm
列表模板 {style}/list_article.htm
文章模板 {style}/article_article.htm
页: [1]
查看完整版本: dede个人记录备忘