Home > Article > CMS Tutorial > How to get the address of the current article in DreamWeaver
Method 1:
DedeCMS comes with a global function, we just call it in the foreground in the form of a label.
The specific code is:
{dede:geturl runphp='yes'} @me = GetCurUrl(); {/dede:geturl}
Method 2:
You can get the current url address through a label, the label is as follows:
{dede:field name='arcurl'/}
Just put the above code into the article content page template and generate the relevant article content page.
Method three:
Call the static document address through sql statement, the specific code is as follows:
{dede:field.id runphp='yes'} $id=@me; @me=''; $url=GetOneArchive($id); @me=$url['arcurl']; {/dede:field.id}
Recommended tutorial: dedecms tutorial
The above is the detailed content of How to get the address of the current article in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!