Home > CMS Tutorial > Empire CMS > How to adapt Imperial CMS to mobile terminals

How to adapt Imperial CMS to mobile terminals

angryTom
Release: 2019-07-19 14:22:51
Original
7205 people have browsed it

How to adapt Imperial CMS to mobile terminals

Recommended tutorial: Empire cms tutorial

Now domestic websites have universal models , users not only access it on computers, but also on mobile phones and tablets. As the number of mobile users becomes larger and larger, mobile access also needs to be considered when building and operating a website.

Today I just have time to share with you how to set the website of the Empire CMS program as a mobile access page. Next, we will take Empire CMS as an example to gradually introduce how to create a mobile website of Empire CMS so that your website can also be viewed on mobile phones. If you are interested, you can refer to it.

Step one:

Select "Import/Export Template Group" in "Template Group Management", then select the default template group, and then export, how to do it The website will save the exported file first. Then change the template group name to "Computer Access Template Group". Then upload the file you just exported from the "Import Template Group" on the right; two template groups will appear. Then we can rename the default template group to "Mobile Access Template Group".

Second step:

Next, back up the d directory of the website, because this folder usually stores images of content pages. Create a new directory in the root directory of the website as the storage location of the mobile site. Then set up domain name resolution. For example, you all know the domain name resolution method. Then upload the Empire CMS program installation package and install a new platform. Note that the installed table prefix only needs to be temporarily set to a name. Because after installation, the two platforms will call the same database.

At this time, we need to modify the config.php file of the mobile website (Empire CMS database configuration file e/class/config.php), which will enable two platforms to call one database at the same time, and modify the template group call ID. Then open the config.php file with a web page editing tool.

Step 3:

Modify the cookie scope to prevent the problem of being able to log in to only one backend at the same time. Next, we enter the background of the mobile website to modify the relevant parameters. After clicking "Template", you will find that the option in the upper left corner has changed to "Mobile Access Template Group"

Others are similar to the computer version we made. The databases for computer access and mobile access are shared, so mobile access There is no need to change the backend of the site. You also need to add an automatic update plug-in to each page. For example, if you publish a piece of content on your computer, the information will be updated simultaneously on your mobile phone, which will save a lot of time. This kind of setting is not enough for aesthetics. Of course, there are also many websites that will specifically find website construction companies to design and customize their mobile sites on the front end. This is a brief introduction to the creation of Imperial CMS mobile terminal access. For other aspects of settings, you can refer to the tutorials or go to the forum to communicate.

The above is the detailed content of How to adapt Imperial CMS to mobile terminals. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template