How to use the empire cms mobile template

angryTom
Release: 2019-07-31 11:24:25
Original
6039 people have browsed it

How to use the empire cms mobile template

If you want to know more about empire cms. You can click:Empire cms tutorial

The following is Detailed operation steps:
1. Set the unified access address of all access terminals
Backstage>System>System parameter settings:

Website address: Do not add a domain name to this address, for example, set it to: / (The domain name is not added after the default installation. If you have modified it yourself, please remove the domain name.)

Attachment address: This address must add a domain name, for example, set it to: http://www.xx.com/d/file/ or bind a second level to the attachment directory /d/file/ Domain name, and then set it to the bound second-level domain name address, such as: http://file.xx.com/

How to use the empire cms mobile template

In this way, the access addresses of all ends are all Unified.

Related instructions: If you change the website address, remember to go to the backend > System > Data Update > Update Information Page Address: Re-update the content page address. No modifications required.

2. Add the template group used by the access terminal

(1) Add the template group used by the access terminal

1. Export the default template group

Backstage>Template>Template Group Management>Import/Export Template Group: Export the "Default Template Group" template group, and save the exported template group *.temp file.

How to use the empire cms mobile template

2. Add the template group used by the access terminal by importing the default template group

Backend> Template >Template Group Management>Import/Export Template Group: Import the template group *.temp file just exported.

Overwrite template group: Be sure to select "Create a new template group".

How to use the empire cms mobile template

3. After the import is completed, return to the management template group page and modify the name of the imported template group:

How to use the empire cms mobile template

4. At this point, the template group for the new access terminal has been added.

(2) How to modify the template of the subsequent client template group

1. Method 1: Modify directly in the background template management

Backstage>Template: There is a "Default Template Group" drop-down box at the top of the left menu. You can select the template under which template group you want to modify, and then you can modify the template of this access terminal.

How to use the empire cms mobile template

2. Method 2: You can install a local copy of the templates used by Empire CMS to manage and debug this access template group

(1) After installing Empire locally, export the template group of the new access terminal, and then import the template group into the local Empire CMS background, so that the template can be modified locally.

(2). After modifying the template under the template group of the new access terminal, export the template group, and then import the template group in the website background, butoverwrite the template group: To select the template group of this access terminal Template group to achieve the effect of covering the template.

How to use the empire cms mobile template


##3. Create a new access directory and copy a copy of the Empire CMS program file into it

(1) Create a new access directory: You can create a new one in any directory. (Note: Do not create a subdirectory under the main access directory. Be careful to set the directory permissions.)Generally, it is enough to create a subdirectory under the main access end. For example: Create the "phone" directory under the root directory of the Empire CMS to serve as the mobile access directory.

How to use the empire cms mobile template

(2) Copy the main access directory to the new access directory. For example: copy to the "phone" directory I created above.

Select the directory and files and copy:

How to use the empire cms mobile template

Paste the directories and files into the "phone" directory of the mobile phone access terminal:

How to use the empire cms mobile template

Related instructions:

1. After copying the directory, remember to set the access directory permissions. For the list of required directory permissions, see the installation instructions of Empire CMS , and the column directory permissions of the website.

2. You can also copy a brand new Empire CMS program to the new access terminal directory, but remember to delete the e/install installation directory after copying, and copy the e/config/config.php configuration file of the main access terminal. . Then set the directory permissions.



4. Bind a second-level domain name to the new access directory

For example: put m. xx.com is bound to the newly created access phone directory above. (Local testing can modify the hosts file to achieve the effect of binding domain names.)

Related instructions: The general steps for domain name binding are as follows

1. Set the domain name control panel to resolve to the server IP

2. Set the binding domain name to the directory in the server (set in apache/iis)

3. Restart apache or iis after setting.

The domain name binding operation needs to be operated on the server or space, and is not within the scope of the Empire CMS operation. You can search on Baidu for detailed operation steps.

5. Add "website access terminal" to the main access terminal backend

(1). Main access terminal backend> ;System>Website Multiple Access Terminals>Manage website access terminals, click "Add Access Terminal":

Access Terminal Name: For example, fill in "Mobile Access Terminal";

Access terminal address: Fill in the bound second-level domain name address, for example:http://m.xx.com/

Access Directory: Fill in the absolute path to the new access directory above, for example: d:/EmpireServer/web/empirecms72/phone/

Communication Key: Fill in 100 characters Any characters within.

Use template group: Select the access template group added above.

Page Mode:

Select "Force Dynamic Page Mode": the access terminal is dynamically displayed and does not need to refresh the page to update;

Select "With "Same as main terminal": If the main terminal adopts static page mode, the page needs to be refreshed in the background of this access terminal before it will be displayed synchronously.

Close the access terminal: Uncheck.

Close submission: If this access terminal does not use submission, choose to close it.

How to use the empire cms mobile template

After setting, click the "Submit" button. After adding, return to "Manage Website Access Terminal" to see the ID of the website access terminal and write it down.

How to use the empire cms mobile template

(2) Return to "Manage Website Access Terminal", click "Update All Access Terminal Cache and Dynamic Pages", and click "Submit" directly button to update the cache.

How to use the empire cms mobile template

## 6. Go to the new access directory and modify the configuration file parameters

Modify the /e/config/config.php configuration file in the new access directory (such as the phone directory above) and set the following two parameters: (The UTF-8 version must not be modified with Notepad, otherwise the file content will be converted to GBK, it is recommended to use Dreamweaver to modify.)


Fill inthe template group IDused by this client, andthis website client IDrespectively. For example, change to:

$ecms_config['sets']['deftempid']=0; //Default template group ID
$ecms_config['sets']['selfmoreportid']=0; //Current website access terminal ID, 0 is the main access terminal
$ecms_config['sets']['deftempid']=2; //Default template group ID
$ecms_config['sets'] ['selfmoreportid']=2; //Current website access terminal ID, 0 is the main access terminal






How to use the empire cms mobile template

##Save the file after modification.

7. At this point, the new access terminal has been added. You can visit the new terminal address to check the effect. All that's left is to modify the template on the access side.

Related instructions:

1. It is recommended to add other website access terminals after the main access terminal template is completed.

2. After modifying the website access configuration parameters in the main access background, all access database caches must be updated to take effect.

3. After the access terminal is closed in the background of the main access terminal, all dynamic pages in the front desk of the access terminal will be unavailable, but the static pages will not be affected by the access.

4. The dynamic templates of each multi-access terminal are independent. If the dynamic pages are also different, log in to the background of each access terminal to modify the dynamic page template to achieve comprehensive personalization.

Differences between the two solutions for the mobile version of Empire CMS7.2:

1. Multi-terminal access function:

Supports the production of N types of access terminals. You need to copy multiple copies of the empire, and then create independent access terminal templates for each terminal, and each terminal page is independent, supporting browsing and dynamic interaction, and is highly comprehensive.

2. WAP mobile access function:

If the mobile terminal only provides the function of browsing information, it is more convenient to use WAP. There is no need to copy multiple empires and make WAP templates. That’s it.

The above is the detailed content of How to use the empire cms mobile template. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!