绝对路径代码:{dede:type}[field:typelink /]{/dede:type}
那么开启绝对路径后,如何在列表页面上获得相对路径呢?
代码:{dede:type function="str_replace('https://www.wfwz.net','',@me)"}[field:typelink /]{/dede:type}
织梦内容页获取相对路径方法:
当前页面绝对路径代码:{dede:field name='arcurl' /}
那么开启绝对路径后,如何在内容页面上获得相对路径呢? 当前页面相对路径代码:
{dede:field name='arcurl' function="str_replace(https://www.wfwz.net','',@me)"/}
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论