如何获取DedeCms当前文章URL地址
有些做网站优化的朋友认为像博客一样,在文章底部显示一个当前文章url链接,如本文链接地址:http://www.xxx.com/xxx/xxx.html,对网站seo有用,所以我就把这个如何获取DedeCms当前文章的URL地址的方法告诉大家。
只要一个标签就可以获取当前url地址!
{dede:field name='arcurl'/}
把上面的一句代码放在文章内容页面里就可以了。
标签解析:{category module=share pid=0}
当前路由:article/show/index
动态地址:index.php?s=article&c=html&m=show&catids=&ids=&is_mobile=&iframe=1&pp=61
变量前缀:t
总记录数:11
分页功能:未开启
可用字段:id、tid、pid、mid、pids、name、dirname、pdirname、child、childids、domain、mobile_domain、thumb、show、content、displayorder、disabled、ismain、pcatpost、topid、catids、is_post、url、total
-
用微信 “扫一扫”
将文章分享到朋友圈。
关注公众号:xue-jiqiao
本文版权归原作者所有,转载请注明原文来源出处,学技巧网站制作感谢您的支持!



