Home > CMS Tutorial > DEDECMS > body text

How to get the address of the current article in DreamWeaver

王林
Release: 2019-11-09 09:34:32
Original
2288 people have browsed it

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}
Copy after login

Method 2:

You can get the current url address through a label, the label is as follows:

{dede:field name='arcurl'/}
Copy after login

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}
Copy after login

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template