Related tags
{$WAP [' sitename ']} title
{List_url (3)} To access the column link
{Template "wap", "header"} {Template "wap", "Footer"}
Fetch details
{Pc:wap action= "lists" typeid= "3" num= "ten" order= "ID ASC" return= "info"}
{Loop $info $i}
<dl>
<dt><a href= "{show_url ($i [CATID], $i [id])}" ></a></dt>
<dd><a href= "{show_url ($i [CATID], $i [id])}" >{str_cut ($i [' title '],26, ')}</a><p>{str_cut ( $i [' Description '],80, ')}</p></dd>
</dl>
{/loop}
{/PC}
Unable to adjust the single page solution!!
The current PHPCMS V9 mobile Site settings are a little weak, bound columns can not set the selection template, and can not tie the order page pages. However, you can customize the page to bind the order pages this feature:
1, modify phpcms\modules\wap\index.php, add function page () functions:
//CMSYOU DIY单页
function page() {
$WAP = $this->wap;
$TYPE = $this->types;
$WAP_SETTING = string2array($WAP[‘setting‘]);
$GLOBALS[‘siteid‘] = max($this->siteid,1);
include template(‘wap‘, ‘page‘);
}
Can be added after function maps () functions. The general meaning of this section of function page () is to add a page model to access the page template under the WAP template directory of the phone via index.php?m=wap&a=page.
2. Add page.html template file under the WAP template directory of mobile phone.
3, in the mobile phone header.html template to add a custom link, although in the background settings do not see a single page of the column, but can actually call a single page of data, you can flexibly define a single page template page.html file, to achieve different CATID access to different content.
Example:
Page.html the settings in the template:
{php $catid = $_GET[‘catid‘];}
{pc:get sql="SELECT * FROM cmsyou_page WHERE catid=‘$catid‘" cache="0" return="data"}
{loop $data $val}
{$val[content]} - {$catid}
{/loop}
{/pc}
This can be through index.php?m=wap&a=page&catid=2, access to the background column ID 2 of the single page content!
Identify a domain name as your mobile WAP site's access domain name, for example: http://m.tezhengzong.com. Next, in the domain name management system to analyze this domain name to your server address.
Modify the \caches\configs\route.php file to increase your phone routing address as follows:
Return Array (
' Default ' =>array (' m ' = ' content ', ' c ' = ' = ' index ', ' a ' + ' init '),
' M.tezhengzong.com ' =>array (' m ' + = ' wap ', ' c ' = ' = ' index ', ' a ' + = ' init '),
);
Phpcms Mobile Portal related