Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
PHPCMSV9 Yellow Pages Module release has been for some time, using relatively hands-on, but the template fixed, yellow pages used to have limitations, such as the webmaster want to add a new template, used to show the company's "appearance", there is no separate template display, there is no corresponding field to add. Here to share my methods. (I am using my own station)
Example: I use PHPCMSV9 Yellow Pages module to make Kindergarten's garden page, kindergartens generally need to have "landscape garden appearance" of the show, the following is the new template added method.
One
1, open the file:/phpcms/modules/yp/com_index.php look for the following code, in line 38th
Include template ($this->default_tpl, ' about ');
}
Add below
* * Two development add template * *
Public Function Yjym () {
$array = $this->array;
$SEO [' title '] = ' landscape garden '. $array [CompanyName];
$SEO [' keywords '] = ' landscaped landscape-'. $array [CompanyName];
$SEO [' description '] = ' landscaped landscape-'. $array [CompanyName];
Include template ($this->default_tpl, ' yjym ');
}
Description: Here Yjym is the Yellow Pages template folder inside the yjym.html file, name and template file name corresponding, otherwise the system can not find templates
2, add the landscape of the garden landscape template file
Open folder:/phpcms/templates/default/yp/com_default/
Add template file "yjym.html" to this folder
The new version of the Yellow Pages is added, and the new template access address at the front desk is:
http://domain name/index.php?m=yp&c=com_index&a=yjym&userid=1 Note The red part, is the template parameters
Two
OK, the template has been added, the following is the add "garden view" of the field
1, open the file:/phpcms/modules/yp/business.php find the following code, in line 187th
$info [' introduce '] = $_post[' info '] [' introduce '];
Add the following code:
$info [' yjym '] = $_post[' info '] [' yjym '];//two development add fields
2. Open File:/phpcms/templates/default/yp/company_info_logo.html Add the following code below line 44th
Garden View:
Name= "Info[yjym]" >{$memberinfo [' Yjym ']}{form::editor (' info[yjym] ', ' full ', ', ', ', ', ', ', ', ', ' 1 ', ' 0 ')}
So in the Yellow Pages, business center--Merchants Information--I have the information inside the "Garden View Garden" editor function
3. Database New Field
Open the database, locate the table: V9_yp_company
Structure--Add 1 fields at the end of the table with the field name: Yjym Type: Text
OK, Yellow Pages Module new template and new fields to complete, the yellow Pages after the use of the module will not have limitations
This article by the Early Childhood education Net http://www.051661.com original, reprint please keep the link, stationmaster All is not easy, development all relies on oneself