帝国cms教程:other.link 和otherlink使用说明

2018-10-2705:32:17网站建设与开发Comments3,536 views字数 618阅读模式

[!--other.link--]和[otherlink]标签模板ID,操作对象,调用条数,标题截取字数,是否显示栏目名,操作类型,只显示标题图片的信息[/otherlink]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

相关文章标签:[otherlink]2,'',10,60,0,0,0[/otherlink]   //好像就按标题的关键字 关联的,在发布文章的特殊属性那里。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

相关文章标签:[!--other.link--]    //好像是按找文章关键字 关联的,,,
[!--other.link--] 标签 在模板管理>公共模板>相关信息链接模板 处修改文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

要是进行跨表操作的时候用[otherlink]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

但是值得注意的是用[otherlink]的操作类型是按栏目时,操作对象不支持'selfinfo',想要是本栏目下的相关链接要用$navinfor[classid]文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

例:[otherlink]3,$navinfor[classid] ,10,200,0,2,0[/otherlink]   这样写是对的文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

[otherlink]3,selfinfo ,10,200,0,2,0[/otherlink]  这样是错的文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

否则会报SQl错误”生成提示错误:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

SQL Error: select * from phome_ecms_ where classid='36' and (keyboard like '%日常%' or keyboard like '%信函%') order by newstime desc limit 10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/7267.html

  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/7267.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定