Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of making Mobile website by Imperial CMS

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of making mobile website by Imperial CMS, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

1. You need to back up the website database first.

2. Next we will add the template group of the mobile phone station. Click "template"

3. Select Import / Export template Group in template Group Management, then select the default template group, then export, and save the export file first. Then change the template group name to computer access template Group. Then upload the newly exported file 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"

4. Next, back up the d directory of the website, because the pictures of the article page are usually saved in this folder.

Create a new directory in the root directory of the website as the storage place for the mobile station. Then set up domain name resolution, such as m.xxxx.com. Then upload the Imperial CMS program installation package to install a new platform. Note that the installed table prefix only needs to set a name temporarily. Because after installation, the two platforms will call the same database.

5. The config.php file of the mobile website needs to be modified. The two platforms will call a database at the same time, and the template group will be modified to call ID.

5. Open the config.php file with Emedit

6. Change the database name and user name to the same database as the one on the computer

7. The default template group ID is changed to the template group ID 3 that we have set for mobile phone access.

8. Go to the backend of the mobile website to modify the relevant parameters

After clicking "template", you will find that the option in the upper left corner has become "New Mobile template Group". The next step is to modify the relevant template page.

What you need to pay attention to when making a mobile phone template is to add these lines to the meta section.

The others are exactly the same as our computer station.

Since the databases accessed by computers and mobile phones are shared, there is no need to change the backstage of the mobile station. You only need to add a regular update function to each page. We add articles on the computer side and update the information on the mobile phone side to ensure synchronization.

Thank you for reading this article carefully. I hope the editor will share the content of Imperial CMS's method of making a mobile website to help everyone. At the same time, I also hope that you will support more, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report