Home  >  Article  >  CMS Tutorial  >  How to get the current article URL address in Dreamweaver

How to get the current article URL address in Dreamweaver

藏色散人
藏色散人Original
2019-11-15 11:04:203245browse

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}

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}

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!

Statement:
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