Home> CMS Tutorial> DEDECMS> body text

What should I do if dedecms cannot obtain the article path using [field:arcurl/]?

藏色散人
Release: 2019-12-17 10:18:02
Original
1758 people have browsed it

What should I do if dedecms cannot obtain the article path using [field:arcurl/]?

dedecms What should I do if I cannot get the article path using [field:arcurl/]?

dedecms uses [field:arcurl/] to solve the problem of being unable to obtain the article path

Recommended learning:Dreamweavercms

{dede:sql sql='Select * from dede_shop where id=6 limit 26'} 
  • [field:title function='cn_substr(@me,20)'/]
  • {/dede:sql}
    Copy after login

    sql The reason why [field:arcurl/] in the statement cannot obtain the address is that arcurl is not a physical table, so the sql tag cannot obtain the static address of the article directly through arcurl.

    You can use the following code:

    [field:id runphp='yes'] $id=@me;@me=''; $url=GetOneArchive($id); @me=$url['arcurl']; [/field:id]
    Copy after login

    However, if the id is invalid, the output will be empty, so you need to check aid.

    The above is the detailed content of What should I do if dedecms cannot obtain the article path using [field:arcurl/]?. 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
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!