Home> CMS Tutorial> DEDECMS> body text

How to get the current article URL address in Dreamweaver

藏色散人
Release: 2019-11-15 11:04:20
Original
3170 people have browsed it

How to get the current article URL address in Dreamweaver

How to get the URL address of the current article?

Dreamweaver gets the URL address of the current article

Sometimes we need to get the URL of the current article. The following code can get it:

{dede:global.cfg_basehost/}{dede:geturl runphp='yes'}@me = GetCurUrl();{/dede:geturl}
Copy after login

But the above code is only valid when the article is a dynamic page view. If your document is accessed statically, you need to use the following code:

{dede:global.cfg_basehost/}{dede:php}$thisid = $refObj->Fields['id']; $arcurl = GetOneArchive($thisid);echo $arcurl['arcurl'];{/dede:php}
Copy after login

Recommended learning:dedecms tutorial

The above is the detailed content of How to get the current article URL address in Dreamweaver. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!