Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic concepts of Jspxcms

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what are the basic concepts of Jspxcms". In daily operation, I believe many people have doubts about the basic concepts of Jspxcms. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what are the basic concepts of Jspxcms?" Next, please follow the editor to study!

Foreground and backstage

The front desk refers to the page provided for the user to browse. For example, the page seen by directly entering the website domain name http://demo.jspxcms.com/ refers to the front desk. The column page and content page belong to the content of the foreground.

Background refers to the management interface used by website administrators to publish news, pictures, videos and other content, such as the background address of the demonstration station http://demo.jspxcms.com/cmscp/index.do. The data stored in the database will also be called the background, for example, to obtain data from the background, that is, to obtain data from the database.

Column

A website usually has a lot of content, which can be classified through "column management". In this way, users can browse more clearly, such as domestic news, international news, pictures, videos, products, downloads and libraries.

Document

The website needs to publish news, articles, atlas, videos, products, etc., which can be released through the "document management" function.

Model

The nature of different columns is different, the required data items (fields) are also different, such as news columns have headlines, sources, text; picture columns have atlas; video columns have videos; product columns have prices. Through "model management", you can define the fields of these columns, so as to flexibly create and maintain the website.

The model is divided into document model, column model, home page model and so on. The document model is used to control the data items (fields) of document Management, and the column model is used to control the data items (fields) of column Management. The home page is the root column, which is a special column.

The fields in the model are divided into system Fields and Custom Fields. The system field is the field that the software has designed, such as the title, column, release time, text and so on in the document management. These fields usually have a special meaning and cannot be replaced by custom fields. For example, the title must use the title of the system field, customizing a title field can not achieve the effect. If the system field can not meet your needs, you can define your own fields, such as meeting venue, meeting date; and even some querable fields can be defined, such as movie type, movie area, product properties and so on.

Template

The display of the front desk of the website is completely controlled by the template and is completely flexible and can be made whatever you want according to your needs. The columns and documents entered in the background are only the data stored in the database, and whether, what and how to display on the final web page depends on the template. For example, in the document management added a "meeting place" field, if the template does not do the corresponding processing, then the foreground page will not change.

The template uses the FreeMarker language. The template path is usually / template/1/default. Template files are suffixed with .html, which is very similar to ordinary html files, except that FreeMarker syntax and Jspxcms tags can be used in templates.

Label

The template is mainly HTML code, which is static; dynamic data is obtained from the background using Jspxcms tags. Jspxcms tags are implemented through FreeMarker custom tags, similar to JSP custom tags. Such as:

[@ InfoList node='news';infos] [# list infos as info] ${info.title} [/ # list] [/ @ InfoList] object

The data obtained by the tag is stored as an object. For example, infos is a list object, in which there is a set of info. The type in java is List;info, which is the document object. There are link properties info.url, title properties info.title, and so on. Most objects are obtained through tags, and some objects exist by default, such as global object global, site object site.

At this point, the study of "what are the basic concepts of Jspxcms" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report