Now it is necessary to do a user can customize the page template function, the user can drag the module for layout.
How the database should be designed is easier to implement in editing and previewing.
Reply content:
Now it is necessary to do a user can customize the page template function, the user can drag the module for layout.
How the database should be designed is easier to implement in editing and previewing.
The main meaning is the user after the next login, or according to his last modified layout? This requires a backend persistence, as you can refer to as a flag-to-JSON:
This JSON is only equivalent to the configuration, not including the HTML code, the content is the ID of each module or name and the corresponding location
Each user has a copy, which can be placed on the user table or independently of a table, and then the user ID is associated
Backend provides the API to return the user's page configuration, when the user logs in to load the configuration, front-end JS According to the Configuration rendering page
Look at your ability to component, I think this thing is the front-end thing, the backend as long as the HTML document is saved, the front-end task is more heavy,