How to design the database to implement the diy page template function!

Source: Internet
Author: User
Now, you need to implement a function that allows you to customize the page template. you can drag the module to layout it. it is easier to edit and preview databases. now, you need to implement a function that allows you to customize the page template. you can drag the module to layout it.
It is easier to edit and preview databases.

Reply content:

Now, you need to implement a function that allows you to customize the page template. you can drag the module to layout it.
It is easier to edit and preview databases.

Does the subject mean that after the user logs on to the system next time, the layout is changed based on the previous time? This requires backend persistence. you can convert the flag to json:

  1. This json is equivalent to configuration and does not contain html code. the content is the ID or name of each module and its corresponding location.

  2. Each user has one copy, which can be stored in a user table or an independent table, and then the user ID is associated.

  3. The backend provides the API to return the user's page configuration. when the user logs on, the configuration is loaded. The frontend js renders the page according to the configuration.

Looking at your componentization capabilities, I think this is a front-end thing. the backend only needs to save html documents, and the front-end tasks are heavy,

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.