Maison  >  Article  >  développement back-end  >  dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,_PHP教程

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,_PHP教程

WBOY
WBOYoriginal
2016-07-13 09:45:332020parcourir

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,

1.我们添加自定义属性跳转文章,填写好跳转网址,如下图

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

2.我们发现链接地址却是动态的,类似http://localhost/plus/view.php?aid=3622,而我们想要http://localhost/zt/dbs/
dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我  

 3.通过查看代码,我们发现修改调用dedecms语句即可

原代码:链接href调用[field:arcurl]是动态的 dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

 修改后代码:链接[field:redirecturl/]是静态的,符合我们的需要

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1040154.htmlTechArticlededecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化, 1.我们添加自定义属性跳转文章,填写好跳转网址,如下图 2.我们发现链接地址却...
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn