迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產品,以萬端互聯(lián)為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
pc里面添加移動適配代碼,如下:
<meta name="mobile-agent" content="format=html5;url=http://m.xxx.com/xys/">
url= 這里面的變量代碼怎么寫?
show.html頁面,這樣寫{dr_mobile_show_url('模塊目錄', $id)}
【jiuhao888】1樓
調出來的是如下代碼,
<meta name="mobile-agent" content="format=html5;url=/index.php?s=news&c=show&id=63">
前面如果加上m.xxx.com
另外,后面的url如何調用出來的是偽靜態(tài)后的url,而非動態(tài)的url
如何實現(xiàn)入校結果?
<meta name="mobile-agent" content="format=html5;url=http://m.xxx.com/index.php?s=http://m.xxc.com/news/show-63.html">
類似上面的結果。
<meta name="mobile-agent" content="format=html5;url=http://m.xxc.com/news/show-63.html">
實現(xiàn)這個結果。
手機端不支持偽靜態(tài)
好辦,如果不生成靜態(tài)的話,可以這樣
{dr_url_prefix($url, "http://m.xxc.com")}
內容頁面調用
show.html頁面,這樣寫{dr_mobile_show_url('模塊目錄', $id)}
【jiuhao888】1樓
調出來的是如下代碼,
<meta name="mobile-agent" content="format=html5;url=/index.php?s=news&c=show&id=63">
前面如果加上m.xxx.com
另外,后面的url如何調用出來的是偽靜態(tài)后的url,而非動態(tài)的url
如何實現(xiàn)入校結果?
<meta name="mobile-agent" content="format=html5;url=http://m.xxx.com/index.php?s=http://m.xxc.com/news/show-63.html">
類似上面的結果。
【jiuhao888】1樓
<meta name="mobile-agent" content="format=html5;url=http://m.xxc.com/news/show-63.html">
實現(xiàn)這個結果。
手機端不支持偽靜態(tài)
好辦,如果不生成靜態(tài)的話,可以這樣
內容頁面調用