织梦栏目列表调用自定义栏目
织梦channelartlist添加limit支持自定义输出栏目
打开 /include/taglib/channelartlist.lib.php 搜索找到
cacheid|
修改为:
cacheid|,limit|
继续找到
$dsql->S...
baishitou
2年前 (2020-10-08) 1213℃
0喜欢
在文章内容页推荐的文章,很多时候都是一些最新的,最热门的等等。但是还有很多冷门的旧文章,默默得躲在角落里,所以需要我们通过随机推荐的方法把这些内容展示出来。
代码:
{dede:arclist row='1000' pagesize='10' titlelen='35' orde...
baishitou
3年前 (2019-12-12) 1840℃
6喜欢
织梦DEDECMS调用当前系统时间,调用代码:
[field:pubdate function="GetDateTimeMk(time())"/]
...
baishitou
4年前 (2019-03-04) 2181℃ 0评论
1喜欢
织梦DEDECMS会员中心底部版权信息是写死的,如果网站改名称啥的,还需要手动修改。
{dede:global.cfg_powerby/}
这个调用是网站模板的,但在会员中心调用是不起作用的。所以我们用下面调用代码就行了
<?php echo $cfg_powerby; ?...
baishitou
4年前 (2018-12-04) 3315℃ 0评论
2喜欢
先看效果
打开 /include/extend.func.php 在最下面添加代码
/**
* 获取图集图片数量
*
* @access public
* @param string $aid 文章id
* @return str...
baishitou
5年前 (2018-10-13) 2271℃ 0评论
1喜欢
第一:需要修改 include/extend.func.php 文件,在它的最后面加上:
//调用单篇文章评论数
function cnum($id)
{
global $dsql;
$row = $dsql->GetOne("Select count(id) ...
baishitou
5年前 (2017-12-05) 2164℃ 0评论
0喜欢
织梦DEDECMS内容页调用当前页URL地址的方法
第一种:
{dede:field.id runphp='yes'}
$id=@me;
@me='';
$url=GetOneArchive($id);
@me=$url['arcurl'];
{/dede:field....
baishitou
5年前 (2017-11-26) 2080℃ 0评论
1喜欢
dedecms首页时间标签:
May 15, 2009 样式
[field:pubdate function='strftime("%m-%d",@me)'/]
12-17
[field:pubdate function='strftime("%m-%d",@me)'/]
ded...
baishitou
8年前 (2015-01-14) 6328℃ 0评论
0喜欢