CN103034496B - Based on the Locally-static portal generation method of template - Google Patents

Based on the Locally-static portal generation method of template Download PDF

Info

Publication number
CN103034496B
CN103034496B CN201210539235.9A CN201210539235A CN103034496B CN 103034496 B CN103034496 B CN 103034496B CN 201210539235 A CN201210539235 A CN 201210539235A CN 103034496 B CN103034496 B CN 103034496B
Authority
CN
China
Prior art keywords
template
column
static
page
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210539235.9A
Other languages
Chinese (zh)
Other versions
CN103034496A (en
Inventor
梁雅元
李伟宁
高鹏
王富宇
罗林波
冯世杰
吴清华
李春雨
王彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KUNMING NENGXUN TECHNOLOGY Co Ltd
Hainan Power Grid Co Ltd
Original Assignee
KUNMING NENGXUN TECHNOLOGY Co Ltd
Hainan Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KUNMING NENGXUN TECHNOLOGY Co Ltd, Hainan Power Grid Co Ltd filed Critical KUNMING NENGXUN TECHNOLOGY Co Ltd
Priority to CN201210539235.9A priority Critical patent/CN103034496B/en
Publication of CN103034496A publication Critical patent/CN103034496A/en
Application granted granted Critical
Publication of CN103034496B publication Critical patent/CN103034496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to Homepage Publishing technical field, specifically disclose a kind of Locally-static portal generation method based on template, it comprises news program customization, and user customizes news program in customized web page, the relevant data of input news program and information; Template data is represented according to column customization information tissue; Integrate column and represent template data, column is represented masterplate data and carries out dynamic content replacement, form static html page character string; Taking portlet instance name as filename, by static state html page character string in a streaming manner writing in files; Column father's page represents news program. The dynamic element that the present invention both ensure that in door homepage is retained, and also farthest improves the loading velocity of door homepage simultaneously, efficiently solves efficiency and safety issue that enterprises and institutions' information portal Website page is browsed, improve Consumer's Experience.

Description

Based on the Locally-static portal generation method of template
Technical field
The present invention relates to Homepage Publishing technical field, particularly relate to a kind of portal website based on template local staticize generation method.
Background technology
In today of network develop rapidly, more and more enterprises and institutions have the webpage of oneself, and webpage, as the information portal of enterprises and institutions, represents the image of enterprise. Current enterprises and institutions information portal is as the basic platform of information integration inside and outside enterprises and institutions, and the generation of page info data is issued very frequent, and user's amount of browsing is huge, and platform adopts dynamic webpage representation mostly, and the operating pressure of application program is very big. Consider all to adopt the mode of overall page staticize to realize the lifting of page access speed and security strategy based on company information portal page performance and secure context at present, but owing to Data Update amount is big, and data require higher in real time, application system service device is caused great pressure, application system is caused to be run stable not, Consumer's Experience poor effect.
Summary of the invention
It is an object of the present invention to propose a kind of Locally-static portal generation method based on template, its dynamic element that both ensure that in door homepage is retained, and also farthest improves the loading velocity of door homepage simultaneously, improves Consumer's Experience.
For achieving the above object, the present invention provides a kind of Locally-static portal generation method based on template, and it comprises the steps:
News program customizes, and user customizes news program in customized web page, the relevant data of input news program and information;
Template data is represented according to column customization information tissue;
Integrate column and represent template data, column is represented masterplate data and carries out dynamic content replacement, form static html page character string;
Taking portlet instance name as filename, by static state html page character string in a streaming manner writing in files;
Column father's page represents news program.
In the present invention, the customization of described news program can pass through online stamp fabrication, and user represents masterplate according to the self-defined news of the demand of oneself.
Concrete, described column customizes information portletID, column ID and name of tv column, column represents masterplate data and media event represents form.
After news program of the present invention has customized, the parameter that the staticize module being operated in portal site server is arranged according to column customized user obtains news data.
In the present invention, described staticize module represents based on masterplate data by column, replaces masterplate data character, generates brand-new html page character string, and this html page character string is write in file by the mode of stream, generates html static page.
In the present invention, the html static page generated described in described column father page include.
The Locally-static portal generation method based on template of the present invention, it provides online template construct, enable user fast and easily self-defined news represent template, then the static HTML content according to template generation is used to replace the page segment (Fragment) in door (PORTAL), thus reach the local staticize of portal website's homepage, the dynamic element that so both ensure that in door homepage is retained, also farthest improve the loading velocity of door homepage simultaneously, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the present invention based on a kind of specific embodiment of Locally-static portal generation method of template;
Fig. 2 is the Locally-static portal flow process framework figure of the present invention based on template.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, 2, the present invention provides a kind of Locally-static portal generation method based on template, and it comprises the steps:
Step a: news program customizes, and user customizes news program in customized web page, the relevant data of input news program and information. In the present invention, the customization of described news program can pass through online stamp fabrication so that user the self-defined news of demand according to oneself can represent masterplate fast and easily. The present invention is by the definition of masterplate, it is possible to allow the ways of presentation of the free customized personal news program of user and news content, possesses good versatility, greatly improves user and using Consumer's Experience and system effect in enterprises and institutions' information portal process. When specifically operating, user can open portlet customized web page, customizes news program in this customized web page, the relevant data of input news program and information, after user has inputted, and online this page of submission.
Step b: represent template data according to column customization information tissue. Concrete, described column customizes information portletID, column ID and name of tv column, column represents masterplate data, media event represents form and other columns customization information.
Step c: integrate column and represent template data, column represents masterplate data and carries out dynamic content replacement, forms static html page character string. In the present invention, integrate column customization relevant information, obtain column news data and demonstrating data according to condition query, and represent masterplate data as news program data exhibiting basis template taking column, generate static html page character string. As a kind of specific embodiment of the present invention, after column customization operations completes, the staticize module being operated in portal site server receives and processes the request of user, news data is obtained according to the parameter that column customized user is arranged, namely this staticize module obtains information and the mark of news program from request, the various detailed information of news program is inquired about from database, and read column and represent masterplate, read the HTML character string of masterplate, the various detailed information inquired before is filled masterplate, preserves into html file.
Steps d: taking portlet instance name as filename, by static state html page character string in a streaming manner writing in files. In the present invention, described staticize module represents based on masterplate data by column, replaces masterplate data character, generates brand-new html page character string, and this html page character string is write in file by the mode of stream, generates html static page. In the specific embodiment of the invention, described html file is called the ID of this portlet, and such as ID is the corresponding 10231.html of Portlet of 10231.
Step e: represent news program in column father's page. The present invention, by, after column customization operations completes, generating for the html static page that specific column represents immediately, is comprised the mode of the html static page of generation, completes staticize by column place father page include. Concrete, in the present invention, described staticize module by generate html file include in portal page, complete staticize, time later user accesses portal page, the news program Portlet of customization just no longer needs dynamically to inquire about news data, the HTML static page that portal page can generate before automatically comprising.
In sum, the Locally-static portal generation method based on template of the present invention, it is by providing online template construct, enable user fast and easily self-defined news represent template, then the static HTML content according to template generation is used to replace the page segment in PORTAL, efficiently solve efficiency and safety issue that enterprises and institutions' information portal Website page is browsed, user is made to obtain best Consumer's Experience when browsing pages, compared to traditional overall page staticize solution, local staticize method can improve the stability of system greatly, taking of less system resource, data can accomplish to represent in real time.
The foregoing is only the better embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. the Locally-static portal generation method based on template, it is characterized in that, online template construct is provided, the self-defined news of user is enable to represent template, then the static html content according to template generation is used to replace the page segment in door, thus reaching the local staticize of portal website's homepage, it comprises the steps:
News program customizes, and user customizes news program in customized web page, the relevant data of input news program and information, and described news program customizes by online template construct, and user represents template according to the self-defined news of the demand of oneself;
Template data is represented according to column customization information tissue;
Integrate column and represent template data, column is represented template data and carries out dynamic content replacement, form static html page character string;
Taking portlet instance name as filename, by static state html page character string in a streaming manner writing in files;
Column father's page represents news program.
2. as claimed in claim 1 based on the Locally-static portal generation method of template, it is characterised in that, described column customizes information portletID, column ID and name of tv column, column represents template data and media event represents form.
3. as claimed in claim 2 based on the Locally-static portal generation method of template, it is characterised in that, after described news program has customized, the parameter that the staticize module being operated in portal site server is arranged according to column customized user obtains news data.
4. as claimed in claim 3 based on the Locally-static portal generation method of template, it is characterized in that, described staticize module represents based on template data by column, replace template data character, generate brand-new html page character string, this html page character string is write in file by the mode of stream, generates html static page.
5. as claimed in claim 4 based on the Locally-static portal generation method of template, it is characterised in that, described column father's page comprises the html static page of described generation.
CN201210539235.9A 2012-12-13 2012-12-13 Based on the Locally-static portal generation method of template Active CN103034496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210539235.9A CN103034496B (en) 2012-12-13 2012-12-13 Based on the Locally-static portal generation method of template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210539235.9A CN103034496B (en) 2012-12-13 2012-12-13 Based on the Locally-static portal generation method of template

Publications (2)

Publication Number Publication Date
CN103034496A CN103034496A (en) 2013-04-10
CN103034496B true CN103034496B (en) 2016-06-01

Family

ID=48021422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210539235.9A Active CN103034496B (en) 2012-12-13 2012-12-13 Based on the Locally-static portal generation method of template

Country Status (1)

Country Link
CN (1) CN103034496B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN104317874B (en) * 2014-10-20 2017-09-12 北京锐安科技有限公司 A kind of method and apparatus of dynamic web page static
CN105373615B (en) * 2015-11-24 2018-12-21 华讯方舟科技有限公司 A kind of method and apparatus of page customization
CN108664244B (en) * 2017-04-02 2021-06-25 北京拓思德科技有限公司 Interface generation method and system based on position coding
CN110516185B (en) * 2019-08-09 2022-04-22 济南浪潮数据技术有限公司 Method and device for processing dynamic website
CN113722643A (en) * 2021-09-02 2021-11-30 山谷网安科技股份有限公司 Method and system for improving static generation efficiency of webpage in total station

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673303A (en) * 2009-10-20 2010-03-17 华康科技(新加坡)有限公司 Generation system of personalized home page
CN102096699A (en) * 2010-12-14 2011-06-15 山东中创软件工程股份有限公司 Dynamic template-based display method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005234959A (en) * 2004-02-20 2005-09-02 Nec Corp Device, program and method for preparing template

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673303A (en) * 2009-10-20 2010-03-17 华康科技(新加坡)有限公司 Generation system of personalized home page
CN102096699A (en) * 2010-12-14 2011-06-15 山东中创软件工程股份有限公司 Dynamic template-based display method and system

Also Published As

Publication number Publication date
CN103034496A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN103034496B (en) Based on the Locally-static portal generation method of template
CN104881488B (en) Configurable information extraction method based on relation table
CN104461484B (en) The implementation method and device of front-end template
Boulos et al. Web GIS in practice VIII: HTML5 and the canvas element for interactive online mapping
CN104142826A (en) Method, device and system for constructing page
CN106155673B (en) Method, device, server and user equipment for realizing page content editor
CN110362372A (en) Page translation method, device, medium and electronic equipment
CN103198074A (en) Page design method and system for dynamic publishing website
CN103701909B (en) The rapid generation and system of Video Applications
CN101146128A (en) Method for allowing small-screen mobile terminal to access and browse WWW websites
CN102065114A (en) Method and device for mobile terminal to access webpage
CN104252521A (en) Web content management using predetermined project templates
CN104391786A (en) Webpage automatic test system and method thereof
CN102214206A (en) Method and equipment for establishing association relation between information entities
CN104750866B (en) Method and system based on flush type WEB server dynamic generation menu bar
CN103237003A (en) Method and device for responding to high visiting flow in network
CN102902673A (en) Method and device for dynamically generating web pages
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN101902492A (en) Web Service server, website constructing method and information exchange method
CN103347069A (en) Method and device for realizing network access
CN103150355A (en) Web page content preview method and device, and equipment
KR100962342B1 (en) System and method for providing creation, registration and management service of homepage
CN103077252A (en) Manufacturing and application method of immediate integrated inquiry interface of reader service of library
RU2634221C2 (en) Method and device for drawing presentation of electronic document on screen
CN104636446B (en) A kind of legacy Web application mobile edition method for transformation based on cloud computing mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant