手机版模板 {dede:field name='position' /} 的用法
1、当手机版以 m.xxx.com 访问的时候
{dede:field name='position' /} 改为
{dede:field name='position' function='str_replace("/m/","/",str_replace(" http://www.xxx.com ","",@me)) /}
2、当手机版以 xxx.com/m 访问的时候
{dede:field name='position' /} 改为
{dede:field name='position' function='str_replace(" http://www.xxx.com "," http://www.xxx.com /m",str_replace("/m/","/",@me)) /}
以上 http://www.xxx.com 改为你的 网站根网址
1、当手机版以 m.xxx.com 访问的时候
{dede:field name='position' /} 改为
{dede:field name='position' function='str_replace("/m/","/",str_replace(" http://www.xxx.com ","",@me)) /}
2、当手机版以 xxx.com/m 访问的时候
{dede:field name='position' /} 改为
{dede:field name='position' function='str_replace(" http://www.xxx.com "," http://www.xxx.com /m",str_replace("/m/","/",@me)) /}
以上 http://www.xxx.com 改为你的 网站根网址