互联网技术 · 2024年2月26日

如何在dedecms中调用同一作者的文章代码

DEDECMS本身是支持调用当前作者或指定作者发布的文章的, 调用方法如下:

{dede:arclist writer=this typeid=top} [field:textlink /]
{/dede:arclist}

参数说明:

writer=this 表前当前文章的作者,你也可以指定任意的ID(数字ID),如 writer=10

typeid=top 考虑到投稿文章可能比较少,用这属性是调用作者所有的最新文章, 如果不指定此属性, 则调用作者在文章所在栏目内发表的文章。

文章来源:黎青松SEO博客

来源地址:http://www.alitaohuo.com/CMSjiaocheng/zhimengjiaocheng/2046.html

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.