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'}
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]
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!