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

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

WBOY
WBOYasal
2016-07-13 09:45:332020semak imbas

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.我们发现链接地址却...
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn