phpcms v9添加单页步骤

来源:互联网 发布:视频培训软件 编辑:程序博客网 时间:2024/06/06 19:01

例如:

步骤一:复制phpcms\templates\default\wap下的maps.html,粘贴重命名为company.html,并修改其中内容作为“公司简介”的模板文件;

步骤二:在phpcms\modules\wap\index.php文件搜索 function maps(),找到

        //导航页

        function maps() {

                $WAP = $this->wap;

                $TYPE = $this->types;

                $WAP_SETTING = string2array($WAP['setting']);       

                $GLOBALS['siteid'] = max($this->siteid,1);       

                include template('wap', 'maps');

        }

复制一份粘贴到下面,并修改为

//公司简介页

        function company() {

                $WAP = $this->wap;

                $TYPE = $this->types;

                $WAP_SETTING = string2array($WAP['setting']);       

                $GLOBALS['siteid'] = max($this->siteid,1);       

                include template('wap', 'company');

        }

步骤三:在相应导航位置添加“公司简介”的链接,完成单页添加。

<a href="{APP_PATH}index.php?m=wap&amp;c=index&amp;a=company">公司简介</a>

0 0
原创粉丝点击