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

织梦程序网站tag模板文件丢失解决方法

近期有些用户想用织梦程序创建TAG,但是生成TAG的时候发现提示:文件不存在 无法解析文档。

原因是:TAG模板不存在,需要我们创建TAG模板。

解决办法:

1:先复制文章页article_article.htm模板,改名成tag.htm

TAG.HTM为TAG的标签聚合页,标签的写法,大家可以参考织梦程序默认风格的模板调用,默认程序TAG模板路径为:templets/default/tag.htm

核心代码写法为:

{dede:tag row=60 sort=new} [field:tag /] {/dede:tag}

最新发布:sort=new

当月发布:sort=month

随机发布:sort=rand

条数:row=条数

2:复制列表模板list_article.htm ,改名成taglist.htm

taglist.htm 为TAG列表页,标签写法参考默认程序的模板,,默认程序TAG列表模板路径为:templets/default/taglist.htm

为了更好的提高TAG聚合页的收录,建议大家可以处理成静态化URL,有利于收录和长尾词排名。

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.

登录免费注册