On the synchronization of Dedecms Mobile station and PC station

Source: Internet
Author: User
Requirements:
Recently has been using the DEDECMS,PC station has been good, columns and other data have been added.
Now I want to base on the PC station, add a cell phone station, want to be able to use a PC station in the same background (is the background to publish an article or add a channel, can simultaneously sync to the PC and mobile station)

Current Situation
1. Start thinking about level two domain names but it feels more complicated and will not engage. Give
2. The same template, with JS to determine whether the phone side, to display the specified div
{dede:include filename= "pages/wap/t_index.html"/}
{dede:include filename= "pages/web/t_index.html"/}
can be implemented, but need to load both the phone and PC station all the resources (JS,CSS, pictures), for the mobile phone station, very bad.
This method is the simplest, but the least efficient
3. Use HTML5 localstorage. Access to the home page of the PC, Localstorage assignment, and then location.href= "pages/wap/t_index.html", in the cell phone station to remove the value of localstorage, display. (To update the local data, depending on the timestamp)
This approach is more complex, especially in terms of data updates.

It was a pain in the wrong.
Have you ever experienced the same problem? Ask for advice ...


Reply to discussion (solution)

You can use this plugin I released ...

Weaving dream Dede PC station + Mobile WAP website data synchronization update and generate HTML plugin
A Plug-in Features:
1. Mobile Station and computer station-generate background data synchronously
2. Mobile Station and computer station-synchronous generation of static HTML
3. Computer station and mobile station-imitation station label exactly the same
4. Computer station and mobile station-can jump to the corresponding inside page
5. Computer station and mobile station-the template is completely separate production (any Web-based mobile station can be pulled down directly set)
5. Optimized for optimization (both mobile phones and computers are separate templates)
6. Data can be made synchronous function, made of website. High bid price
7. Customers to add information conveniently, as long as add once on, mobile station computer station directly synchronized
8. Just a website backstage

See Demo station: http://www.myk98.com Please open the test with your phone and computer separately

You need to contact me q:316248534 I send you a

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.