News program template generation method and device, equipment and medium
By obtaining the template configuration data and basic templates of the news program, and generating a hierarchical news program template, the problem of the template being unmodified in the existing technology is solved, and the flexibility and personalization are improved.
Patent Information
- Application Number
- CN202510459003.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-08-01
AI Technical Summary
Existing news program templates are fixed and non-modified, resulting in insufficient flexibility and personalization.
By obtaining template configuration data related to news programs and preset basic templates, a hierarchical news program template is generated based on user plane and underlying configuration data to achieve flexible configuration and personalization.
It improves the flexibility and personalization of news program templates, reduces the possibility of version confusion, and meets real-time adjustments to different business needs.
Smart Images

Figure CN120406930A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and in particular, to a method, apparatus, device, and medium for generating a news program template. Background Art
[0002] In the news industry, users can view various types of news under various news programs through a device, and different layouts, items, etc. are displayed on the interface of the device.
[0003] Currently, a preset news program template is generally used to display various types of news. Since it is a preset news program template, a page carrying news information can be quickly generated. However, this preset news program template is fixed and does not allow addition or modification, thus lacking flexibility. Summary of the Invention
[0004] Embodiments of this application provide a method, apparatus, device, and medium for generating a news program template, so as to achieve the effects of improving flexibility and personalization.
[0005] In a first aspect, a method for generating a news program template according to this application includes:
[0006] Obtain template configuration data related to a news program and a preset news program basic template; the template configuration data includes user plane configuration data and underlying configuration data;
[0007] Generate a user plane configuration template based on the user plane configuration data and the news program basic template;
[0008] Generate an underlying configuration template based on the underlying configuration data and the news program basic template;
[0009] Generate a news program template based on the user plane configuration template and the underlying configuration template; the news program template is a program template with a hierarchical architecture.
[0010] Optionally, the user plane configuration data includes page configuration data related to a news program template;
[0011] Generating a user plane configuration template based on the user plane configuration data and the news program basic template includes:
[0012] Perform page configuration on the news program basic template based on the page configuration data to generate a page-based configuration template; the page-based configuration template is the user plane configuration template;
[0013] The underlying configuration data includes global configuration data and service configuration data;
[0014] Generating a bottom-layer configuration template based on the bottom-layer configuration data and the news program basic template includes:
[0015] Performing global configuration on the news program basic template based on the global configuration data to generate a globalized configuration template;
[0016] Performing service configuration on the news program basic template based on the service configuration data to generate a service-oriented configuration template;
[0017] Packaging the globalized configuration template and the service-oriented configuration template to generate a bottom-layer configuration template.
[0018] Optionally, the global configuration data includes public configuration data, application configuration data, and third-party configuration data; the news program basic template includes a global basic template;
[0019] The performing global configuration on the news program basic template based on the global configuration data to generate a globalized configuration template includes:
[0020] Performing global configuration on the global basic template based on the public configuration data, the application configuration data, and the third-party configuration data respectively to generate a globalized configuration template.
[0021] Optionally, the page configuration data includes page standard data and page personalized data; the news program basic template includes a page basic template;
[0022] The performing page configuration on the news program basic template based on the page configuration data to generate a page-oriented configuration template includes:
[0023] Performing page standard configuration on the standard configuration items in the page basic template based on the page standard data, and performing page personalized configuration on the personalized configuration items in the page basic template based on the page personalized data to generate a page-oriented configuration template.
[0024] Optionally, the page basic template includes manuscript basic templates corresponding to at least one preset manuscript; the template configuration data further includes the target manuscripts included in the news program; the page standard data includes manuscript standard data corresponding to at least one target manuscript;
[0025] The performing page standard configuration on the standard configuration items in the page basic template based on the page standard data includes:
[0026] Determining the manuscript basic template corresponding to the target manuscript from the manuscript basic templates corresponding to at least one preset manuscript, and determining the manuscript basic template corresponding to the target manuscript as the target basic template;
[0027] Perform page standard configuration on the standard configuration items in the target basic template based on the manuscript standard data.
[0028] Optionally, the page personalization data includes the manuscript personalization data of at least one target manuscript that needs to be personalized configured.
[0029] The performing page personalization configuration on the personalization configuration items in the target basic template based on the page personalization data includes:
[0030] Determine the target basic template that needs to be personalized configured from at least one target basic template based on the page personalization data, and determine the target basic template that needs to be personalized configured as the personalized basic template;
[0031] Perform page personalization configuration on the personalization configuration items in the personalized basic template based on the manuscript personalization data to generate a page personalization configuration template.
[0032] Optionally, the method further includes:
[0033] Obtain the configuration data for updating the news program template;
[0034] Perform an update on the news program template based on the updated configuration data to generate an updated news program template;
[0035] The method further includes:
[0036] Under the visual perspective, package the news program template to generate a template package, and upload the template package to the background for management, storage, and optimization operations;
[0037] The method further includes:
[0038] Generate a news program template using a recursive algorithm based on the template configuration data and the news program basic template; the news program template is a dynamic configuration file with a two-dimensional structure that supports storage.
[0039] In a second aspect, an embodiment of the present application provides a news program template generation device, including:
[0040] Obtain the template configuration data related to the news program and the preset news program basic template;
[0041] Generate a news program template based on the template configuration data and the news program basic template.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0043] The memory stores computer execution instructions;
[0044] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the first aspect and / or various possible implementation manners of the first aspect as described above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the first aspect and / or various possible implementation manners of the first aspect as described above.
[0046] A news program template generation method, device, equipment and medium provided by an embodiment of the present application. In the present application, template configuration data of a news program and a preset basic template of the news program are obtained, and then, based on the template configuration data, a news program template is generated on the basis of the basic template of the news program. It can be seen that in the present application, it is possible to perform targeted configuration on the basis of the preset basic template of the news program by using user-plane configuration data and underlying configuration data respectively to generate a news program template, which is more flexible; in addition, the template configuration data in the present application is related to the news program, thereby reflecting the personalized requirements of the news program, making the news program template more personalized; the template configuration data in the present application is further abstracted into user-plane configuration data and underlying configuration data, which are independent of each other and do not interfere with each other during configuration, reducing chaos; the news program template in the present application is a program template with a hierarchical architecture, and different hierarchical architectures are independent of each other, which can improve the degree of orderliness. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0048] Figure 1 It is a schematic diagram of the scenario for generating a news program template provided by the present application;
[0049] Figure 2 It is a schematic flow diagram of a news program template generation method provided in Embodiment 1;
[0050] Figure 3 It is a schematic flow diagram of a news program template generation method provided in Embodiment 2;
[0051] Figure 4 It is a schematic diagram of the overall architecture provided by an embodiment of the present application;
[0052] Figure 5 It is a schematic diagram of a news program template generation device provided by an embodiment of the present application;
[0053] Figure 6 It is a schematic diagram of the structure of an electronic device provided by the present application.
[0054] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and will be described in more detail hereinafter. These drawings and the written description are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments
[0055] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0056] To solve the deficiencies of the prior art, the inventors of this solution have conducted creative research and designed a new solution. This solution provides a method for generating a news program template. To solve the problem of poor flexibility in the prior art, in this solution, template configuration data related to the news program and a preset news program basic template are obtained, and then based on the template configuration data, configuration can be performed on the news program basic template to generate a news program template. Since configurability can be achieved, flexibility can be improved, and dynamic configuration is also realized; in addition, since the template configuration data is related to the news program itself, the characteristics of the news program itself can be reflected, and thus the generated news program template has personalization; in addition, in the present application, the user plane configuration data and the underlying configuration data abstracted from the template configuration data are configured separately, and then the user plane configuration template and the underlying configuration template are obtained respectively. In the present application, the user configuration data and the underlying configuration data are independent of each other and do not interfere with each other, which is convenient for configuration, improves the orderliness, and reduces the confusion.
[0057] Figure 1 A scenario schematic diagram for generating a news program template provided by the present application is as Figure 1 shown, including an electronic device 101 and a background 102.
[0058] Among them, the electronic device 101 is communicatively connected to the background 102, and the connection method is a wired connection or a wireless connection, which is not limited herein.
[0059] Among them, a newspaper news visualization packaging management platform (hereinafter referred to as the management platform) 103 is installed in the electronic device 101. Specifically, the management platform 103 obtains template configuration data related to the news program and a preset news program basic template.
[0060] Further, the management platform 103 generates a news program template based on the template configuration data and the news program basic template.
[0061] Further, in the face of the visualization perspective, the management platform 103 packages the news program template, generates a template package, and uploads the template package to the background 102.
[0062] Further, the background 102 stores and manages the template package.
[0063] Combined with the above scenarios, in the prior art, due to the inability to modify the preset news program template, the flexibility is low. However, in this application scenario, the management platform 103 can configure the preset news program basic template through the template configuration data related to the news program, and then generate a news program template. It can be seen that the news program template can be configured and generated, thus reflecting flexibility and dynamism. In addition, the template configuration data is related to the news program, thus reflecting the news program itself, so that the news program template reflects personalization. In addition, the news program template is a program template with a hierarchical architecture, so the content included therein is hierarchical, independent of each other, and does not affect each other, so the orderliness is improved and the situation of version chaos is reduced.
[0064] It should be noted that the news program generation method in this application can be applied to the generation of program templates for newspapers, news, reports, and new media. More specifically, the news program in this application can be a current affairs news program.
[0065] The following uses specific embodiments to elaborate in detail on the technical solution of this application and how the technical solution of this application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0066] Embodiment 1
[0067] The execution subject of the embodiment of this application is a news program template generation device (hereinafter referred to as the generation device), and this generation device is located in an electronic device. Figure 2 It is a schematic flowchart of a news program template generation method provided for Embodiment 1. As Figure 2 shown, it includes:
[0068] S201, obtain the template configuration data related to the news program and the preset news program basic template.
[0069] Among them, the template configuration data includes user plane configuration data and underlying configuration data. Among them, the user plane configuration data refers to the configuration data that is reflected at the user level and can be perceived by the user. For example, the user plane configuration data includes theme components. When the user opens the news program on their own user device, they can see the content under the theme components on the interface. The underlying configuration data refers to the configuration data that is reflected at the underlying level. When the user opens the news program through the user device, they will not perceive this configuration data on the interface.
[0070] Among them, the preset news program basic template refers to a general basic template set in advance. It should be noted that the news program basic template can include a user plane basic template and an underlying basic template.
[0071] Among them, the user plane basic template can include a page basic template, and the underlying basic template can include a global basic template and a service basic template.
[0072] In one way, the operation and maintenance personnel can input the template configuration data into the electronic device.
[0073] In one way, the preset news program basic template is pre-stored in the storage space of the electronic device, and the electronic device can obtain the preset news program basic template from this storage space.
[0074] It should be noted that the electronic device in this application is equipped with a newspaper news visualization packaging management platform, and this management platform can be used to generate news program templates. This management platform can achieve visualization.
[0075] S202, generate a user plane configuration template based on the user plane configuration data and the news program basic template.
[0076] Among them, the user plane configuration template is a configuration template generated by configuring the news program basic template with the user plane configuration data.
[0077] S203, generate an underlying configuration template based on the underlying configuration data and the news program basic template.
[0078] Among them, the underlying configuration template is a configuration template generated by configuring the news program basic template with the underlying configuration data.
[0079] S204, generate a news program template based on the user plane configuration template and the underlying configuration template.
[0080] Among them, the news program template is the program template corresponding to this news program.
[0081] It should be noted that after the news program template is generated, when the user opens the news program on the user side, the page configured with the user-side configuration data can be displayed to the user through the underlying configuration in the news program template.
[0082] It should be noted that the news program template is a program template with a hierarchical architecture, that is, the architectures included therein are independent of each other and do not interfere with each other, reducing the situation of version confusion.
[0083] It should be noted that the news program template in this embodiment can be a news program template for current affairs. The management platform in this application can achieve real-time adjustment. For current affairs news, due to business requirements, if it is necessary to adjust the news program template for current affairs in a timely manner, the updated configuration data can be sent to the management platform, so that the management platform can perform real-time adjustment on the news program template for current affairs based on the updated configuration data, thus meeting the need for timely adjustment of current affairs news. After the timely adjustment, it does not affect the user's use, so the user experience is improved.
[0084] It should be noted that this embodiment further includes:
[0085] Using a recursive algorithm to generate a news program template based on the template configuration data and the news program basic template; the news program template is a dynamic configuration file with a two-dimensional structure that supports storage.
[0086] Among them, for the convenience of management, the management platform in the electronic device packs the news program template, generates a template package, and uploads it to the background. Thus, the news program template, because it supports storage, is a dynamic configuration file with a two-dimensional structure.
[0087] Among them, the management platform supports secondary configuration of the news program template, which further reflects that the news program template is a dynamic configuration file and can be dynamically configured.
[0088] Among them, when performing secondary configuration and packaging and uploading on the management platform, it can be a visual perspective, thus realizing visualization.
[0089] It should be noted that the management platform in this application can use a preset development tool, and this preset development tool can be a development tool that realizes the development of Web and desktop applications through a single code library.
[0090] It should be noted that the background in this application can be developed using the dart language, which includes a relational database and an in-memory database.
[0091] It should be noted that the management platform in this application supports real-time acquisition of updated configuration data, and based on the updated configuration data, it configures the news program template in real time, packages it into a template package, and uploads it to the background. It should be noted that this application can perform one-key automated packaging and uploading, thereby improving the packaging and uploading efficiency.
[0092] This embodiment provides a method for generating a news program template. In this embodiment, the template configuration data of the news program and the preset news program basic template are obtained. Then, based on the news program basic template, a news program template is generated based on the template configuration data. It can be seen that in this embodiment, configuration can be performed based on the preset news program basic template to generate a news program template, which is more flexible. Furthermore, in this embodiment, the template configuration data is abstracted into user-plane configuration data and underlying configuration data, and corresponding user-plane configuration templates and underlying configuration templates are generated by configuring respectively according to the above two types of configurations, improving the orderliness; in addition, the template configuration data in this embodiment is related to the news program, thereby reflecting the individual needs of the news program, making the news program template more personalized; the news program template in this embodiment is a program template with a hierarchical architecture, and different hierarchical architectures are independent of each other, which can improve the orderliness; in addition, the template configuration data in this embodiment is abstracted and further divided into user-plane configuration data and underlying configuration data. In this embodiment, the two different types of configuration data are respectively configured based on the news program basic template to generate user-plane configuration templates and underlying configuration templates, so they are independent of each other and do not interfere with each other when generating their respective configuration templates.
[0093] Embodiment Two
[0094] This embodiment is a further refinement of the above embodiment. In this embodiment, the user-plane configuration data includes page configuration data related to the news program template.
[0095] Among them, the page configuration data refers to the user-plane configuration data, that is, the page configuration data of the news program template.
[0096] This embodiment is an optional way to generate a user-plane configuration template based on the user-plane configuration data and the news program basic template, including:
[0097] Performing page configuration on the news program basic template based on the page configuration data to generate a page-based configuration template; the page-based configuration template is the user-plane configuration template.
[0098] In this embodiment: the underlying configuration data includes global configuration data and service configuration data.
[0099] This embodiment also includes an optional way: generating an underlying configuration template based on the underlying configuration data and the news program basic template, specifically:
[0100] Figure 3 Schematic diagram of a method for generating a news program template provided for Embodiment 2. As Figure 3 shown, it includes:
[0101] S301, globally configure the news program basic template based on global configuration data to generate a globally configured template.
[0102] Among them, the globally configured template refers to a configured template generated by filling, modifying or adding configuration items and filling the corresponding configuration content in the news program basic template based on global configuration data.
[0103] It should be noted that global configuration is performed on the news program basic template to generate a globally configured template. <()
[0104] Among them, global configuration data is a type of underlying configuration data, that is, general configuration data for the news program template.
[0105] Among them, service configuration data is a type of underlying configuration data, that is, personalized configuration data for the news program template.
[0106] Among them, the page-configured template refers to a configured template generated by filling or configuring page configuration data on the basis of the news program basic template.
[0107] It should be noted that page configuration is performed on the news program basic template to generate a page-configured template.
[0108] S302, perform service configuration on the news program basic template based on service configuration data to generate a service-configured template.
[0109] Among them, the service-configured template refers to a configured template generated by filling or configuring service configuration data on the basis of the news program basic template.
[0110] It should be noted that service configuration is performed on the news program basic template to generate a service-configured template.
[0111] S302, package the globally configured template and the service-configured template to generate an underlying configuration template.
[0112] Among them, the underlying configuration template includes the globally configured template and the service-configured template.
[0113] It should be noted that the news program template in this embodiment includes three sub-configuration templates, namely, the globalization configuration template, the paging configuration template, and the service configuration template. Among them, each sub-configuration template is independent of each other and does not interfere with each other, improving the orderliness and reducing the occurrence of version chaos.
[0114] Among them, the sub-configuration template can continue to be stratified downward and can include sub-nodes and descendant nodes under the sub-nodes. For example, the sub-node can be a theme configuration item, and the theme configuration item can further include a configuration item for the theme color when stratified downward, which is a descendant node. Exemplarily, the news program template can include 14 sub-nodes and 1200 descendant nodes.
[0115] This embodiment provides a method for generating a news program template. In this embodiment, the paging configuration data in the user plane configuration data, the global configuration data and the service configuration data included in the underlying configuration data are respectively used to configure the news program basic template to generate the globalization configuration template, the paging configuration template and the service configuration template. The above three configuration templates are independent of each other and do not interfere with each other, thereby improving the orderliness and reducing the occurrence of version chaos.
[0116] Embodiment III
[0117] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the global configuration data includes public configuration data, application configuration data, and third-party configuration data; the news program basic template includes a global basic template.
[0118] Among them, the global basic template refers to a general basic template preset for the underlying layer.
[0119] Among them, the public configuration data can include configuration data related to public classes such as sharing icon and rule configuration data, sharing title and rule configuration data, sharing description and rule configuration data, and column secondary sharing setting configuration data.
[0120] Among them, the application configuration data can include configuration data related to the program use such as application name, description, retention, theme color, code branch, request interface uniform resource locator, interface signature verification method, drawing extraction domain name, drawing extraction suffix, etc.
[0121] Among them, the third-party configuration data can include configuration data for docking with third parties such as an authorization switch for a certain application program, deep link parameters, big data buried point parameters, external third-party buried point parameters, and a uniform resource locator configured by the server.
[0122] This embodiment is an optional way to globally configure the news program basic template based on the global configuration data to generate the globalization configuration template, specifically including:
[0123] Global configuration is performed on the global basic template based on common configuration data, application configuration data, and third-party configuration data respectively to generate a globalized configuration template.
[0124] In one approach, based on the global basic template, the common configuration data is read, and the configuration items regarding the common configuration data in the global basic template are filled, modified, or added to achieve the global configuration of the common configuration data. Further, in the configuration template where the common configuration data has been configured, the application configuration data is filled, modified, or added to the configuration items regarding the application configuration data to achieve the global configuration of the application configuration data.
[0125] Further, in the configuration template where the application configuration data has been configured, the third-party configuration data is filled, modified, or added to the configuration items regarding the third-party configuration data to achieve the global configuration of the third-party configuration data.
[0126] After the above three different configurations of global configuration data, a globalized configuration template is finally generated.
[0127] This embodiment provides a method for generating a news program template. In this embodiment, the global configuration data can be further abstracted downward to distinguish three types of configuration data, namely common configuration data, application configuration data, and third-party configuration data. For different global configuration data, configuration is respectively implemented with the global as the underlying general configuration dimension to obtain a globalized configuration template. Therefore, this embodiment further realizes hierarchical configuration, reducing interference and the occurrence of version chaos.
[0128] This embodiment further includes: the page configuration data includes page standard data and page personalized data; the news program basic template includes a page basic template.
[0129] Among them, the page standard data refers to data for page standardization or page generalization.
[0130] Among them, the page personalized data refers to data unique to the page that shows the page's personalization.
[0131] It should be noted that for the news program basic template to reduce interference, different types of basic templates are abstracted. In this embodiment, a page basic template is abstracted from the news program basic template, a global basic template is abstracted in the previous text, and a service basic template is abstracted in the following text. It can be understood that after the news program basic template is abstracted according to functions, properties, etc., different basic templates are obtained respectively, making them independent and reducing interference.
[0132] This embodiment further includes an optional approach: page configuration is performed on the news program basic template based on the page configuration data to generate a pageized configuration template, specifically:
[0133] Perform page standard configuration on the standard configuration items in the page basic template based on page standard data, and perform page personalized configuration on the personalized configuration items in the page basic template based on page personalized data to generate a page-based configuration template.
[0134] It should be noted that the news program basic template includes at least one configuration item, and each configuration item represents its respective configuration. It can be understood that configuring the news program basic template actually involves operations such as filling, modifying, or adding configuration items to the configuration items included therein.
[0135] It should be noted that the page configuration data is abstracted to obtain page standard data and page personalized data, and then each is independently configured for its configuration items in the page basic template.
[0136] In one way, the management platform can first perform page standard configuration on the standard configuration items in the page basic template based on page standard data. On this basis, the management platform performs page personalized configuration on the personalized configuration items based on page personalized data, and then completes filling, modifying, or adding configuration items and filling the corresponding configuration content, and then generates a page-based configuration template.
[0137] Among them, the page standard data may include function configuration data. For example, the function configuration data includes function-related configuration data such as content page time rules, list time rules, and list time limits. The page standard data may also include general page-level style configuration data, such as the theme color of each page, which will not be elaborated here.
[0138] Among them, the page personalized data may include style configuration data. For example, personalized style configuration data such as the number of lines for title display, title image angle style, image ratio, interactive nine-square grid style, source display, live type display style, list time style, source display, list corner mark style, timeline display style, font, font size, color, character spacing, line spacing, and boldness.
[0139] It should be noted that in this embodiment, taking the page as an independent display layer dimension, the page standard data and page personalized data are abstracted, and the standard configuration items and personalized configuration items are configured to generate a page-based configuration template, which can realize independent page configuration and can realize the reuse of configuration items, and thus can realize low code.
[0140] This embodiment also includes an optional way: perform service configuration on the news program basic template based on service configuration data to generate a service-based configuration template.
[0141] Among them, the news program basic template includes a service basic template.
[0142] Among them, the service configuration data is personalized data related to service categories. For example, it may include service-related data such as the operation address, warehouse address, version number, version domain name, and third-party interface address, etc., without limitation here.
[0143] Specifically, the management platform performs service configuration on the service basic template based on the service configuration data, and then generates a service-oriented configuration template.
[0144] Embodiment 4
[0145] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the page basic template includes at least one manuscript basic template corresponding to a preset manuscript; the template configuration data further includes the target manuscripts included in the news program; the page standard data includes at least one manuscript standard data corresponding to the target manuscript.
[0146] It should be noted that, in order to achieve generality, the news program basic template generally includes the manuscript basic templates of commonly used manuscripts currently.
[0147] Among them, the manuscripts can include audio-visual manuscripts, graphic manuscripts, link manuscripts, special topic manuscripts, etc.
[0148] Among them, the target manuscript refers to the manuscript supported by this news program. Exemplarily, assume that the preset manuscripts are audio-visual manuscripts, graphic manuscripts, link manuscripts, but this news program only needs to support audio-visual manuscripts and graphic manuscripts. Therefore, the audio-visual manuscripts and graphic manuscripts are the target manuscripts. This embodiment is an optional way to perform page standard configuration on the standard configuration items in the page basic template based on the page standard data, specifically including:
[0149] Step 1: Determine the manuscript basic template corresponding to the target manuscript from at least one manuscript basic template corresponding to the preset manuscript, and determine the manuscript basic template corresponding to the target manuscript as the target basic template.
[0150] According to the above example, assume that the target manuscripts are audio-visual manuscripts and graphic manuscripts, then determine the manuscript basic templates corresponding to the audio-visual manuscripts and graphic manuscripts (i.e., the audio-visual basic template and the graphic basic template) as the target basic templates.
[0151] Among them, the number of target basic templates is at least one.
[0152] It should be noted that for non-target basic templates, they can be deleted, or the functions of non-target basic templates can be closed, so that non-target basic templates can be not displayed on the user side.
[0153] Step 2: Perform page standard configuration on the standard configuration items in the target basic template based on the manuscript standard data.
[0154] Among them, for the manuscript standard data corresponding to any target manuscript, there may be at least one piece of manuscript standard data.
[0155] For any piece of manuscript standard data, locate the corresponding standard configuration item in the target basic template, and fill or modify the standard configuration item according to the data included in the manuscript standard data.
[0156] Alternatively, if the configuration item corresponding to any piece of manuscript standard data does not exist in its corresponding target basic template, add a column of configuration items at the corresponding position in the corresponding target basic template. This configuration item serves as the standard configuration item for this piece of manuscript standard data, and fill the data included in this piece of manuscript standard data into the above standard configuration item to achieve adding a configuration item and filling the corresponding configuration content.
[0157] This embodiment provides a method for generating a news program template. In this embodiment, the page standard configuration of the corresponding standard configuration item is realized according to the manuscript standard data corresponding to the target manuscript, and the page personalized configuration of the personalized configuration item is realized through the manuscript personalized data. In this application, the manuscript standard data and the manuscript personalized data are extracted and are independent of each other, do not interfere with each other, and are configured separately, thereby improving flexibility.
[0158] This embodiment further includes: The page personalized data includes the manuscript personalized data of at least one target manuscript that needs to be personalized configured.
[0159] This embodiment further includes an optional method: perform page personalized configuration on the personalized configuration items in the target basic template based on the page personalized data. Specifically:
[0160] Step 1: Based on the page personalized data, determine the target basic template that needs to be personalized configured from at least one target basic template, and determine the target basic template that needs to be personalized configured as the personalized basic template.
[0161] According to the above example, assume that the target manuscript is an audio-visual manuscript or a graphic and text manuscript, and the page personalized data includes the manuscript personalized data of at least one target manuscript that needs to be personalized configured. Exemplarily, assume that the target manuscript that needs to be personalized configured is an audio-visual manuscript. In one way, the management platform reads the manuscript personalized data of at least one target manuscript that needs to be personalized configured from the page personalized data, and determines the at least one target manuscript that needs to be personalized configured as the personalized manuscript. Exemplarily, assume that the page personalized data includes the manuscript personalized data of the audio-visual manuscript, that is, determine the personalized manuscript as the audio-visual manuscript.
[0162] Further, the management platform determines, from the target basic templates (according to the above examples, namely the audio-visual basic template and the graphic and text basic template), the target basic template that needs to be personalized, that is, the audio-visual basic template.
[0163] Further, the management platform determines the audio-visual basic template as the personalized basic template.
[0164] Among them, the personalized basic template refers to the basic template that needs to be page-personalized configured.
[0165] Step 2: Based on the manuscript personalized data, perform page-personalized configuration on the personalized configuration items in the personalized basic template to generate a page-personalized configuration template.
[0166] It should be noted that the news program template in this application extracts general configuration data (including global configuration data and page standard data) and personalized configuration data (including page personalized data and service configuration data) through a hierarchical architecture, making them independent of each other. Furthermore, it can achieve one code for multiple configurations, reduce configuration redundancy, and improve flexibility.
[0167] The implementation method of this step is the same as that of performing page standard configuration on the standard configuration items in the target basic template based on the manuscript standard data, and will not be elaborated here.
[0168] As can be seen from the above embodiments, the management platform in this application can extract different types of configuration data according to the breakdown of the template configuration data, and then configure them independently without interference. This application can not only achieve general configuration (for example, configuring the global basic template with global configuration data and configuring the standard configuration items in the page basic template with page standard data), but also achieve personalized configuration (for example, performing page-personalized configuration on the personalized configuration items in the target basic template with page personalized data, and performing service configuration on the news program basic template with service configuration data). Furthermore, it can improve flexibility and can also be configured or adjusted in real time, reflecting the dynamic nature. Since this application can be personalized configured, the generated news program template is more suitable for the news program itself, overcoming the traditional method of using a general template.
[0169] Embodiment 5
[0170] This embodiment is a further refinement of any of the above embodiments, and this embodiment includes:
[0171] Obtain the configuration data for updating the news program template;
[0172] Based on the updated configuration data, perform an update on the news program template to generate an updated news program template.
[0173] It should be noted that the management platform in this application can obtain updated configuration data in real time, and then be updated in real time to generate an updated news program template.
[0174] This embodiment further includes:
[0175] Pack the news program template to generate a template package, and upload the template package to the background for easy management, storage, and optimization operations.
[0176] It should be noted that the management platform of this application can achieve one-key automated packaging and uploading. During the packaging process, the corresponding news program template is packaged and uploaded.
[0177] In some related technologies, manual packaging is generally used. However, during the manual packaging process, it is easy to mix and package news program templates of different versions, resulting in version chaos.
[0178] The management platform in this application can directly achieve automated uploading without the need for transfer, so the operations in the middle section are optimized.
[0179] It should be noted that the management platform in this application can achieve two-way integration of visual output and input.
[0180] It should be noted that the management platform of this application can generate and adjust news program templates in newspaper news.
[0181] Figure 4 This is a schematic diagram of the overall architecture provided by the embodiment of this application. As Figure 4 shown, it includes: project layer 401, newspaper news visual packaging management platform 103, model layer 402, view layer 403, and component layer 404.
[0182] Among them, the project layer 401 includes N projects, where a project can refer to news program templates of different customers.
[0183] Among them, the model layer 402 includes a business logic layer 4021 and template configuration data 4022. Among them, the template configuration data 4022 can include the personalized data in this application, that is, page personalized data and service configuration data.
[0184] Among them, the view layer 403 can include manuscript basic templates corresponding to at least one preset manuscript, and Figure 4 includes news, live broadcasts, political inquiries, activities, etc.
[0185] Among them, the component layer 404 can include at least one user interface (User Interface, abbreviated as UI) component, specifically including list, content, related list, share, topic, comment, picture, picture set, audio and video, advertisement, reward, vote, like, etc.
[0186] The embodiment of the present application further includes a news program template generation device. Figure 5 FIG. is a schematic diagram of a news program template generation device provided by an embodiment of the present application. The news program template generation device 500 includes the following modules:
[0187] An acquisition module 501, configured to acquire template configuration data related to a news program and a preset news program basic template; the template configuration data includes user plane configuration data and underlying configuration data;
[0188] A generation module 502, configured to generate a user plane configuration template based on the user plane configuration data and the news program basic template;
[0189] The generation module 502 is further configured to generate an underlying configuration template based on the underlying configuration data and the news program basic template;
[0190] The generation module 502 is further configured to generate a news program template based on the user plane configuration template and the underlying configuration template; the news program template is a program template with a hierarchical architecture.
[0191] Optionally, the user plane configuration data includes page configuration data related to the news program template;
[0192] When generating the user plane configuration template based on the user plane configuration data and the news program basic template, the generation module 502 is specifically configured to:
[0193] Perform page configuration on the news program basic template based on the page configuration data to generate a page-based configuration template; the page-based configuration template is the user plane configuration template;
[0194] The underlying configuration data includes global configuration data and service configuration data;
[0195] Generating the underlying configuration template based on the underlying configuration data and the news program basic template includes:
[0196] Perform global configuration on the news program basic template based on the global configuration data to generate a globalized configuration template;
[0197] Perform service configuration on the news program basic template based on the service configuration data to generate a service-based configuration template;
[0198] Package the globalized configuration template and the service-based configuration template to generate the underlying configuration template.
[0199] Optionally, the global configuration data includes public configuration data, application configuration data, and third-party configuration data; the news program basic template includes a global basic template;
[0200] The generation module 502, when globally configuring the news program basic template based on the global configuration data to generate a globally configured template, is specifically used for:
[0201] Globally configure the global basic template based on the public configuration data, application configuration data, and third-party configuration data respectively to generate a globally configured template.
[0202] Optionally, the page configuration data includes page standard data and page personalized data; the news program basic template includes a page basic template;
[0203] The generation module 502, when page-configuring the news program basic template based on the page configuration data to generate a page-configured template, is specifically used for:
[0204] Perform page standard configuration on the standard configuration items in the page basic template based on the page standard data, and perform page personalized configuration on the personalized configuration items in the page basic template based on the page personalized data to generate a page-configured template.
[0205] Optionally, the page basic template includes a manuscript basic template corresponding to at least one preset manuscript; the template configuration data further includes the target manuscripts included in the news program; the page standard data includes manuscript standard data corresponding to at least one target manuscript;
[0206] The generation module 502, when performing page standard configuration on the standard configuration items in the page basic template based on the page standard data, is specifically used for:
[0207] Determine the manuscript basic template corresponding to the target manuscript from the manuscript basic templates corresponding to at least one preset manuscript, and determine the manuscript basic template corresponding to the target manuscript as the target basic template;
[0208] Perform page standard configuration on the standard configuration items in the target basic template based on the manuscript standard data.
[0209] Optionally, the page personalized data includes manuscript personalized data of at least one target manuscript that needs to be personalized configured;
[0210] The generation module 502, when performing page personalized configuration on the personalized configuration items in the target basic template based on the page personalized data, is specifically used for:
[0211] Determine the target basic template that needs to be personalized configured from at least one target basic template based on the page personalized data, and determine the target basic template that needs to be personalized configured as the personalized basic template;
[0212] Perform page personalized configuration on the personalized configuration items in the personalized basic template based on the manuscript personalized data to generate a page personalized configuration template.
[0213] Optionally, the obtaining module 501 is further configured to: obtain configuration data for updating the news program template;
[0214] The generating module 502 is further configured to: update the news program template based on the updated configuration data to generate an updated news program template;
[0215] The generating module 502 is further configured to: package the news program template to generate a template package, and upload the template package to the background for management, storage, and optimization operations;
[0216] The method further includes:
[0217] Generate a news program template based on the template configuration data and the news program basic template by using a recursive algorithm; the news program template is a dynamic configuration file supporting a two-dimensional structure for storage.
[0218] A news program template generating device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0219] Figure 6 It is a schematic structural diagram of an electronic device provided in this application. As Figure 6 shown, the electronic device 101 provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the electronic device 101 further includes a communication component 603. Among them, the processor 601, the memory 602, and the communication component 603 are connected through a bus 604.
[0220] In a specific implementation process, at least one processor 601 executes computer-executable instructions stored in the memory 602, so that at least one processor 601 executes the above method.
[0221] For the specific implementation process of the processor 601, reference can be made to the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0222] In the above embodiment, it should be understood that the processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0223] The memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.
[0224] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
[0225] This application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0226] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the above method is implemented.
[0227] The above-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a disk, or an optical disc. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.
[0228] An exemplary readable storage medium is coupled to the processor, enabling the processor to read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.
[0229] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed among each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0230] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0231] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0232] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical discs and other various media that can store program codes.
[0233] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disks or optical discs and other various media that can store program codes.
[0234] Finally, it should be noted that: After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present invention. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A method for generating a news program template, characterized in that, Including: Obtaining template configuration data related to a news program and a preset news program basic template; The template configuration data includes user plane configuration data and underlying configuration data; Generating a user plane configuration template based on the user plane configuration data and the news program basic template; Generating an underlying configuration template based on the underlying configuration data and the news program basic template; Generating a news program template based on the user plane configuration template and the underlying configuration template; The news program template is a program template with a hierarchical architecture.
2. The method according to claim 1, characterized in that The user plane configuration data includes page configuration data related to the news program template; The generating a user plane configuration template based on the user plane configuration data and the news program basic template includes: Performing page configuration on the news program basic template based on the page configuration data to generate a page-based configuration template; the page-based configuration template is the user plane configuration template; The underlying configuration data includes global configuration data and service configuration data; The generating an underlying configuration template based on the underlying configuration data and the news program basic template includes: Performing global configuration on the news program basic template based on the global configuration data to generate a globalized configuration template; Performing service configuration on the news program basic template based on the service configuration data to generate a service-based configuration template; Packaging the globalized configuration template and the service-based configuration template to generate an underlying configuration template.
3. The method according to claim 2, wherein The global configuration data includes public configuration data, application configuration data, and third-party configuration data; the news program basic template includes a global basic template; The performing global configuration on the news program basic template based on the global configuration data to generate a globalized configuration template includes: Performing global configuration on the global basic template based on the public configuration data, the application configuration data, and the third-party configuration data respectively to generate a globalized configuration template.
4. The method according to claim 2, wherein The page configuration data includes page standard data and page personalized data; the news program basic template includes a page basic template; The performing page configuration on the news program basic template based on the page configuration data to generate a page-based configuration template includes: Performing page standard configuration on the standard configuration items in the page basic template based on the page standard data, and performing page personalized configuration on the personalized configuration items in the page basic template based on the page personalized data to generate a page-based configuration template.
5. The method according to claim 4, characterized in that The page basic template includes manuscript basic templates corresponding to at least one preset manuscript; the target manuscripts included in the news program are further included in the template configuration data; the page standard data includes manuscript standard data corresponding to at least one target manuscript; The performing page standard configuration on the standard configuration items in the page basic template based on the page standard data includes: Determining the manuscript basic template corresponding to the target manuscript from the manuscript basic templates corresponding to at least one preset manuscript, and determining the manuscript basic template corresponding to the target manuscript as the target basic template; Performing page standard configuration on the standard configuration items in the target basic template based on the manuscript standard data.
6. The method according to claim 5, characterized in that, The page personalization data includes manuscript personalization data of at least one target manuscript that needs to be personalized configured; The page personalization configuration of the personality configuration items in the target basic template based on the page personalization data includes: Determining a target basic template that needs to be personalized configured from at least one target basic template based on the page personalization data, and determining the target basic template that needs to be personalized configured as the personality basic template; Performing page personalization configuration on the personality configuration items in the personality basic template based on the manuscript personalization data to generate a page personalization configuration template.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Obtaining configuration data for updating the news program template; Updating the news program template based on the updated configuration data to generate an updated news program template; The method further includes: Under the visual perspective, packaging the news program template to generate a template package, and uploading the template package to the background for management, storage and optimization operations; The method further includes: Generating a news program template by using a recursive algorithm based on the template configuration data and the news program basic template; the news program template is a dynamic configuration file with a two-dimensional structure that supports storage.
8. A news program template generation device, characterized in that, Including: An obtaining module, configured to obtain template configuration data related to a news program and a preset news program basic template; A generating module, configured to generate a news program template based on the template configuration data and the news program basic template.
9. An electronic device, characterized in that, Including: A memory, a processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the computer execution instructions are executed by a processor, they are used to implement the method according to any one of claims 1-7.