Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make app Free template in Android

Shulou Source: shulou.com Published: 2022-06-02 01:29:10 09月21日 Update

Today, the editor will share with you the relevant knowledge points about how to make the app free template in Android. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

Templates are usually predefined (search page, TAGS page, login page) or related to specific data (such as columns, documents, topics, advertisements). If you need a free page that does not rely on specific data, you can use the app template. When developing APP applications for mobile phones, you can also use app templates. You can also access app templates through ajax to achieve portal-like functionality.

Controller:com.jspxcms.core.web.fore.AppController.app ().

Access address: / app?template= {template}. The template parameter is required. For example, http://localhost:8080/app?template=abc. (addresses in version 7. 0 and older need to be suffixed with .jspx, such as http://localhost:8080/app.jspx?template=abc)

Template rule: app_ {template} .html. Parse the template corresponding to the template parameter in the request. For example, / template/1/default/app_abc.html.

Universal default objects such as ctx, global and site can be used in the template, and the required data can be obtained through tags.

You can also pass parameters (such as / app?template= {template} & infoId= {infoId}) in the URL address, such as / app?template=abc&infoId=12. Parameter values (such as ${Param.infoId!}) can be obtained through Param in the template, and specific data can be obtained with tags. Such as:

[@ Info idled Param.infoID] ${info.title} ${info.text} [/ @ Info]

To return json data, you can call the tag in the template to construct json format data. Such as:

[[@ InfoList nodeId=Param.nodeId! Infos] [# list infos as info] {"title": "${info.title?js_string}", "url": "${info.url?js_string}"} [# if info_has_next], [/ # if] [/ # list] [/ @ InfoList]] these are all the contents of the article "how to make app Free template in Android". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Templates data parameters knowledge articles freedom addresses tags production content can be passed through templates different very large topics functions suffixes most objects that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple OPPO Reno Docker Shulou Technology