Home > Article > CMS Tutorial > 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!