Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the methods of weaving dreams to get the address of the current article?

Shulou Source: shulou.com Published: 2022-06-02 05:17:08 10月03日 Update

This article will explain in detail the methods of weaving dreams to get the address of the current article. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Method 1:

A global function that comes with DedeCMS, we just call it in the foreground in the form of a tag.

The specific code is:

{dede:geturl runphp='yes'} @ me = GetCurUrl (); {/ dede:geturl}

Method 2:

You can obtain the current url address through a tag, as follows:

{dede:field name='arcurl'/}

Just put the above code in the article content page template and generate the relevant article content page.

Method 3:

Call the static document address through the sql statement, as follows:

{dede:field.id runphp='yes'} $id=@me; @ me=''; $url=GetOneArchive ($id); @ me=$url ['arcurl']; {/ dede:field.id} the methods of weaving dreams to get the address of the current article are shared here. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Article method address code content tag more article good practical global function foreground just epigenetic form document template knowledge statement Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi Linux Apple OPPO Reno