Home  >  Article  >  CMS Tutorial  >  How to get the address of the current article in DreamWeaver

How to get the address of the current article in DreamWeaver

王林
王林Original
2019-11-09 09:34:322296browse

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!

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