帝国cms搭建个人网站 帝国CMS相关文章标签other.link 和otherlink使用说明介绍

帝国CMS教程

[!--other.link--][otherlink]标签模板ID,操作对象,调用条数,标题截取字数,是否显示栏目名,操作类型,只显示标题图片的信息[/otherlink]都是用于调用相关文章的标签,具体不同点如下:

相关文章标签:[otherlink]2,'',10,60,0,0,0[/otherlink] //按标题的关键字关联的,在发布文章的特殊属性那里。

相关文章标签:[!--other.link--] //按找文章关键字关联的

[!--other.link--] 标签 在模板管理>公共模板>相关信息链接模板处修改

要是进行跨表操作的时候用[otherlink]

但是值得注意的是用[otherlink]的操作类型是按栏目时,操作对象不支持'selfinfo',想要是本栏目下的相关链接要用$navinfor[classid]

例:[otherlink]3,$navinfor[classid],10,200,0,2,0[/otherlink]这样写是对的

[otherlink]3,selfinfo,10,200,0,2,0[/otherlink]这样是错的

否则会报SQl错误”生成提示错误:

SQL Error: select * from phome_ecms_ where classid='36' and (keyboard like '%日常%' or keyboard like '%信函%') order by newstime desc limit 10