Cloud development and extension capabilities
Cloud development Extension capability is a one-stop cloud service provided by the cloud development team for developers, which aims to lower the barrier for developers to use cloud services and help developers develop applications quickly. At present, there are external support for image processing, image security audit, image blind watermark, image label and so on.
Today we are talking about the newly launched “CMS Content Management System”, hereinafter referred to as “CMS”.
To facilitate developers and content operators to manage the content data of multi-terminal cloud development such as applets/Web anytime and anywhere, the CLOUD development CMS supports PC/ mobile browser access and visual editing of various content types such as text, rich text, pictures, files and association types.
Not only that, CMS natural multi-end adaptation, so that the development of management background, use are more simple, for me this KIND of UI front-end, the “CMS content management system” interface, I am quite satisfied. I can also pull out my phone and check the data of my mini program at any time.
Cloud development CMS functions and features
Free development | Generate a content management interface based on a background modeling configuration without writing code |
---|---|
Multiterminal adaptation | Supports PC/ mobile access and content management |
feature-rich | Support text, rich text, images, files and other types of visual editing, and support content association |
Access control | The access control system is based on two roles: administrator and operator |
External system integration | Supports Webhook interface, which can be used to notify external systems after operation modification, such as automatically building static websites and sending notifications |
Data source compatibility | Supports the management of cloud development data of applets/Web/mobile terminals, supports the management of existing data sets, and can also create new content and data sets in the BACKGROUND of CMS |
The deployment of simple | One-click deployment and upgrade on the extended management interface of the Cloud Development Console |
Development steps
How do I make my CMS data source compatible with existing tables
In the management of small program data, in the past need to be in the cloud development management console management, very troublesome, and only their own to understand, but with cloud development CMS, you can let the original small program have a more visual management.
Cloud development The CMS manages cloud development data on applets, Web and mobile terminals, manages existing data sets, and creates new content and data sets on the CMS background
That is to say, if you have done the database storage previously, this time just in the “content Settings” will be the table name, field name of the data table again declare once, will not affect the online data. (Refresh the page every time you modify the table structure)
User_id (user_id); user_id (user_id); userId (userId); user_id (createTime); In this way, field management on UI side (Web and small program), cloud function, CMS and cloud database is unified field naming scheme, which is more convenient in code programming.
In MySQL database, you need to use the snake name (user_id). In Java logic, the snake name is converted to the small camel name. In NOSQL databases, you can directly use small camel name naming, which not only simplifies field name conversion, but also is very friendly to javascripts based Web cloud development and small program cloud developers.
CMS supports image type, so that the material image from local to cloud storage
The basic function of the Hi avatar is to superimpose sticker material on a picture of a person’s face.
-
Wechat’s small program Canvas draws pictures that need to use local paths
-
Canvas drawing on ios devices does not support horizontal flipping
So I put the pictures locally, and each picture has two directions. The pain point is that not only do local images take up a lot of volume in the small package, but they can also be difficult to maintain when the function is upgraded.
This time put the image on the cloud storage and save the couldID in the database. In use, the couldID can be converted into a real picture Url on the cloud function side, and the picture Url can be converted into a local path for use on the Canvas drawing.
Through simple configuration, you can achieve in the CMS image management material, so for small procedures, greatly simplified the ability to update material.
CMS supports multiple tables, which can establish field association tables to promote the creative upgrading of Hi avatar
Hi avatar applet has previously done two themed activities, one for wearing a mask and the other for wearing a crown on Queen’s Day, and has written two pages in the local page, and each page has its own page configuration. After that, if you want to add a few more festivals or themed events, do you need to add a new page configuration to the applet code every time?
This time, I will use the CMS content Management system to do it.
Field in the dictionary
With the help of some of the functions of cloud development CMS, I did some simple configuration and completed a rich background function configuration.
-
Profile picture editing page: responsible for the profile picture editing function, each time there is a theme activity
-
Theme: Organize stickers, picture frames, page backgrounds, theme colors, etc., around a theme, such as festivals, interesting activities (summer cooling), etc
-
Sticker classification: display stickers in categories
-
Stickers: pasted on people’s face or head, the position type can be forehead, mouth, other, can be more than one head
In addition to the common types, CMS also supports advanced formats such as rich text, markdown, and association types, which continue to associate a field with another table. For example, sticker categories belong to multiple themes and stickers belong to multiple sticker categories. In such cases, it is very convenient to use association types for quick management.
Conclusion * *
Through some simple configuration, you can achieve a powerful content management system (CMS), for me such a UI front-end, or very good, can help me quickly achieve what I want to manage the background, improve work efficiency, reduce the cost of time, is a very good function. If you also face the same problem as me, need a management background to manage data and do not have too much energy and manpower, cloud development CMS, will be your best choice.
Public account: Tencent Yunyun Development
Tencent Cloud development: Cloudbase.net
The development of cloud console: console.cloud.tencent.com/tcb?from=12…
Win more wonderful scan QR code to learn more